From: Tom Rini Date: Wed, 26 Aug 2015 19:18:30 +0000 (-0400) Subject: tools/atmelimage.c: Fix warning when debug is enabled X-Git-Tag: KARO-TX6-2015-09-18~86 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=9ad92fea1c7a48b622663cf5bf171f718cc8bc7c tools/atmelimage.c: Fix warning when debug is enabled Otherwise we get: tools/atmelimage.c:134:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ [-Wformat=] debug("atmelimage: interrupt vector #%d is 0x%08X\n", pos+1, ^ Reviewed-by: Andreas Bießmann Signed-off-by: Tom Rini --- diff --git a/tools/atmelimage.c b/tools/atmelimage.c index 5b72ac54a6..6b5603eb87 100644 --- a/tools/atmelimage.c +++ b/tools/atmelimage.c @@ -131,7 +131,7 @@ static int atmel_verify_header(unsigned char *ptr, int image_size, /* check the seven interrupt vectors of binary */ for (pos = 0; pos < 7; pos++) { - debug("atmelimage: interrupt vector #%d is 0x%08X\n", pos+1, + debug("atmelimage: interrupt vector #%zu is 0x%08X\n", pos+1, ints[pos]); /* * all vectors except the 6'th one must contain valid