* cgen-trace.h (trace_extract): Add cast to fix warning.
authorDoug Evans <dje@google.com>
Sun, 22 Nov 2009 22:29:28 +0000 (22:29 +0000)
committerDoug Evans <dje@google.com>
Sun, 22 Nov 2009 22:29:28 +0000 (22:29 +0000)
sim/common/ChangeLog
sim/common/cgen-trace.c

index 7b10e9536d5e48d0388127d557a5af43baa40cfe..b5ef6a99005c2b37055f392d6bb86894f663b834 100644 (file)
@@ -1,3 +1,7 @@
+2009-11-22  Doug Evans  <dje@sebabeach.org>
+
+       * cgen-trace.h (trace_extract): Add cast to fix warning.
+
 2009-11-05  Doug Evans  <dje@sebabeach.org>
 
        * cgen-mem.h (DECLARE_GETT): Don't inline.
index 9b0367f0d473242cf697ecfcea317438d446f55a..b984ea8b0208b173fded1cd80155dab341e83f31 100644 (file)
@@ -192,7 +192,7 @@ trace_extract (SIM_CPU *cpu, IADDR pc, char *name, ...)
   va_start (args, name);
 
   trace_printf (CPU_STATE (cpu), cpu, "Extract: 0x%.*lx: %s ",
-               SIZE_PC, pc, name);
+               SIZE_PC, (unsigned long) pc, name);
 
   do {
     int type,ival;