This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]