From: Mike Frysinger Date: Sun, 8 Mar 2015 07:24:03 +0000 (-0400) Subject: sim: microblaze: fix printf string X-Git-Tag: gdb-7.10-release~1342 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e95021c775db2c483e87033ebef3d42ff99c7e0;p=external%2Fbinutils.git sim: microblaze: fix printf string Since sizeof returns a size_t, use %zu to display it. --- diff --git a/sim/microblaze/ChangeLog b/sim/microblaze/ChangeLog index 0a068ff..e34a21d 100644 --- a/sim/microblaze/ChangeLog +++ b/sim/microblaze/ChangeLog @@ -1,3 +1,7 @@ +2015-03-08 Mike Frysinger + + * interp.c (microblaze_extract_unsigned_integer): Change %ld to %zu. + 2015-02-20 Mike Frysinger * interp.c: Delete sysdep.h and netinet/in.h includes. 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. */