Sim - Use long int format instead of int to avoid compiling warning
authorMichael Eager <eager@eagercon.com>
Tue, 1 Jul 2014 00:38:15 +0000 (17:38 -0700)
committerMichael Eager <eager@eagercon.com>
Tue, 1 Jul 2014 00:40:02 +0000 (17:40 -0700)
2014-07-01  Chen Gang <gang.chen.5i5j@gmail.com>

* sim/microblaze/interp.c: Use long int format instead of int
format to avoid compiling warnings.

sim/ChangeLog
sim/microblaze/interp.c

index 35d092006f8a1599ddcc8d26fdae55bb0d72910f..03c244b36839dd837ded8d2f604f5abcb86a0136 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-01  Chen Gang <gang.chen.5i5j@gmail.com>
+
+       * sim/microblaze/interp.c: Use long int format instead of int
+       format to avoid compiling warnings.
+
 2014-03-12  Nick Clifton  <nickc@redhat.com>
 
        * MAINTAINERS: Add myself as the maintainer for the MSP430.
index cc612788a4ff97034d440888d5567d1dff6c6a78..e92a1d013f3e65d0d882caaffbc532b63829b5c0 100644 (file)
@@ -50,7 +50,7 @@ microblaze_extract_unsigned_integer (unsigned char *addr, int len)
 
   if (len > (int) sizeof (unsigned long))
     printf ("That operation is not available on integers of more than "
-           "%d bytes.", sizeof (unsigned long));
+           "%ld bytes.", sizeof (unsigned long));
 
   /* Start at the most significant end of the integer, and work towards
      the least significant.  */
@@ -325,7 +325,7 @@ sim_size (int size)
     {
       if (issue_messages)
        fprintf (stderr,
-                "Not enough VM for simulation of %d bytes of RAM\n",
+                "Not enough VM for simulation of %ld bytes of RAM\n",
                 CPU.msize);
 
       CPU.msize = 1;
@@ -356,7 +356,7 @@ set_initial_gprs ()
   memsize = CPU.msize / (1024 * 1024);
 
   if (issue_messages > 1)
-    fprintf (stderr, "Simulated memory of %d Mbytes (0x0 .. 0x%08x)\n",
+    fprintf (stderr, "Simulated memory of %ld Mbytes (0x0 .. 0x%08lx)\n",
             memsize, CPU.msize - 1);
 
   /* Clean out the GPRs */
This page took 0.032428 seconds and 4 git commands to generate.