diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-06-17 21:49:05 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-06-17 21:49:05 +0000 |
commit | b48596dfa70a048705eaa5b052f7e440f207673a (patch) | |
tree | 9850d711251ce3a1d171c80a84b8f33c597f0887 /sim/v850 | |
parent | 1cf5c6269e7cc538cc9cf4e1b4f1d1fb5d75ffd5 (diff) | |
download | gdb-b48596dfa70a048705eaa5b052f7e440f207673a.tar.gz |
* simops.c (trace_result): Fix printf formatting.
Diffstat (limited to 'sim/v850')
-rw-r--r-- | sim/v850/ChangeLog | 4 | ||||
-rw-r--r-- | sim/v850/simops.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog index 15c1deed961..cb20ad5f864 100644 --- a/sim/v850/ChangeLog +++ b/sim/v850/ChangeLog @@ -1,3 +1,7 @@ +2002-06-17 Andrew Cagney <cagney@redhat.com> + + * simops.c (trace_result): Fix printf formatting. + 2002-06-16 Andrew Cagney <ac131313@redhat.com> * configure: Regenerated to track ../common/aclocal.m4 changes. diff --git a/sim/v850/simops.c b/sim/v850/simops.c index f6f43ee2368..9a83d0796a2 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) |