fmt_address + i)))
{
case 'd':
- trace_printf (sd, current_cpu, "%d", value);
+ trace_printf (sd, current_cpu, "%d", (int) value);
break;
case 'i':
- trace_printf (sd, current_cpu, "%i", value);
+ trace_printf (sd, current_cpu, "%i", (int) value);
break;
case 'u':
- trace_printf (sd, current_cpu, "%u", value);
+ trace_printf (sd, current_cpu, "%u", (unsigned int) value);
break;
case 'x':
- trace_printf (sd, current_cpu, "%x", value);
+ trace_printf (sd, current_cpu, "%x", (unsigned int) value);
break;
case 'l':
{
fmt_address + i))
{
case 'd':
- trace_printf (sd, current_cpu, "%ld", value);
+ trace_printf (sd, current_cpu, "%ld", (long) value);
break;
case 'i':
- trace_printf (sd, current_cpu, "%li", value);
+ trace_printf (sd, current_cpu, "%li", (long) value);
break;
case 'u':
- trace_printf (sd, current_cpu, "%lu", value);
+ trace_printf (sd, current_cpu, "%lu", (unsigned long) value);
break;
case 'x':
- trace_printf (sd, current_cpu, "%lx", value);
+ trace_printf (sd, current_cpu, "%lx", (unsigned long) value);
break;
case 'l':
{
switch (GETMEMUQI (current_cpu, CPU_PC_GET (current_cpu),
fmt_address + i)) {
case 'd':
- trace_printf (sd, current_cpu, "%lld", value);
+ trace_printf (sd, current_cpu, "%lld", (long long) value);
break;
case 'i':
- trace_printf (sd, current_cpu, "%lli", value);
+ trace_printf (sd, current_cpu, "%lli", (long long) value);
break;
case 'u':
- trace_printf (sd, current_cpu, "%llu", value);
+ trace_printf (sd, current_cpu, "%llu", (unsigned long long) value);
break;
case 'x':
- trace_printf (sd, current_cpu, "%llx", value);
+ trace_printf (sd, current_cpu, "%llx", (unsigned long long) value);
break;
default:
assert (0);