summaryrefslogtreecommitdiff
path: root/sim/microblaze
diff options
context:
space:
mode:
authorMichael Eager <eager@eagercon.com>2014-06-30 17:38:15 -0700
committerMichael Eager <eager@eagercon.com>2014-06-30 17:40:02 -0700
commitba8e7d1e24bc53269b5814c99a321783dab3812a (patch)
treed2dad80475660360174a4f06db55e08071a6556d /sim/microblaze
parent422b1cb0912f88f0509f75b9fee055c8259c13be (diff)
downloadbinutils-gdb-ba8e7d1e24bc53269b5814c99a321783dab3812a.tar.gz
Sim - Use long int format instead of int to avoid compiling warning
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.
Diffstat (limited to 'sim/microblaze')
-rw-r--r--sim/microblaze/interp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sim/microblaze/interp.c b/sim/microblaze/interp.c
index cc612788a4f..e92a1d013f3 100644
--- a/sim/microblaze/interp.c
+++ b/sim/microblaze/interp.c
@@ -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 */