aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/simops.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-06-17 21:49:05 +0000
committerAndrew Cagney <cagney@redhat.com>2002-06-17 21:49:05 +0000
commitd62274a3975876b39a4196ab70e7de52e98586f5 (patch)
tree4d31a21c4e06f50b75b114639731869e4a9273ab /sim/v850/simops.c
parentea1e7ef6e5264a747921851a9370c4603aeef3c6 (diff)
downloadgdb-d62274a3975876b39a4196ab70e7de52e98586f5.zip
gdb-d62274a3975876b39a4196ab70e7de52e98586f5.tar.gz
gdb-d62274a3975876b39a4196ab70e7de52e98586f5.tar.bz2
* simops.c (trace_result): Fix printf formatting.
Diffstat (limited to 'sim/v850/simops.c')
-rw-r--r--sim/v850/simops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index f6f43ee..9a83d07 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -211,7 +211,8 @@ trace_result (int has_result, unsigned32 result)
int i;
for (i = 0; i < trace_num_values; i++)
{
- sprintf (chp, "%*s0x%.8lx", SIZE_VALUES - 10, "", trace_values[i]);
+ sprintf (chp, "%*s0x%.8lx", SIZE_VALUES - 10, "",
+ (long) trace_values[i]);
chp = strchr (chp, '\0');
}
while (i++ < 3)