diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-03-08 03:24:03 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-03-08 03:24:09 -0400 |
commit | 3e95021c775db2c483e87033ebef3d42ff99c7e0 (patch) | |
tree | 0012958e997519a30e2bcf102586d074e56a338e /sim/microblaze/interp.c | |
parent | d1771b76856741b8743fb47dbda993f73084bdb9 (diff) | |
download | gdb-3e95021c775db2c483e87033ebef3d42ff99c7e0.zip gdb-3e95021c775db2c483e87033ebef3d42ff99c7e0.tar.gz gdb-3e95021c775db2c483e87033ebef3d42ff99c7e0.tar.bz2 |
sim: microblaze: fix printf string
Since sizeof returns a size_t, use %zu to display it.
Diffstat (limited to 'sim/microblaze/interp.c')
-rw-r--r-- | sim/microblaze/interp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/microblaze/interp.c b/sim/microblaze/interp.c index 64850ef..ac2adb8 100644 --- a/sim/microblaze/interp.c +++ b/sim/microblaze/interp.c @@ -51,7 +51,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 " - "%ld bytes.", sizeof (unsigned long)); + "%zu bytes.", sizeof (unsigned long)); /* Start at the most significant end of the integer, and work towards the least significant. */ |