This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch sim/v850] -Werror fixes
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 17 Jun 2002 17:50:14 -0400
- Subject: [patch sim/v850] -Werror fixes
Just FYI,
committed,
Andrew
2002-06-17 Andrew Cagney <cagney@redhat.com>
* simops.c (trace_result): Fix printf formatting.
Index: simops.c
===================================================================
RCS file: /cvs/src/src/sim/v850/simops.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 simops.c
--- simops.c 16 Apr 1999 01:35:12 -0000 1.1.1.1
+++ simops.c 17 Jun 2002 21:48:07 -0000
@@ -211,7 +211,8 @@
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)