Passify gcc's warnings.
authorAndrew Cagney <cagney@redhat.com>
Thu, 15 May 1997 00:14:33 +0000 (00:14 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 15 May 1997 00:14:33 +0000 (00:14 +0000)
sim/tic80/ChangeLog
sim/tic80/insns

index 9c6908d..ea9bb67 100644 (file)
@@ -1,3 +1,7 @@
+Thu May 15 10:14:06 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * insns (do_trap): Printf formatting.
+
 Wed May 14 18:05:50 1997  Mike Meissner  <meissner@cygnus.com>
 
        * misc.c (tic80_trace_fpu{3,2,2i}): Align columns with other
index 270b5c4..b823b96 100644 (file)
@@ -1066,7 +1066,7 @@ void::function::do_trap:unsigned32 trap_number
            if (!TRACE_ALU_P (CPU))
              trace_one_insn (SD, CPU, cia.ip, 1, itable[MY_INDEX].file,
                              itable[MY_INDEX].line_nr, "trap",
-                             "Trap %d", trap_number);
+                             "Trap %ld", (long) trap_number);
 
            for (i = 0; i < 32; i++)
              sim_io_eprintf (SD, "%s0x%.8lx%s", ((i % 8) == 0) ? "\t" : " ", (long)GPR(i),