From: Wolfgang Denk Date: Fri, 11 Sep 2009 06:58:11 +0000 (+0200) Subject: kwbimage.c: Fix compile warning when building on 64 bit systems X-Git-Tag: v2010.09-rc1~28^2~7^2~42^2~121 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fd37a0d04e339267b5d2872e9e6ee6650f122367;p=u-boot kwbimage.c: Fix compile warning when building on 64 bit systems Fix this warning when building on 64 bit systems: tools/kwbimage.c: In function 'kwbimage_checksum32': tools/kwbimage.c:135: warning: format '%d' expects type 'int', but argument 4 has type 'long unsigned int' Signed-off-by: Wolfgang Denk Cc: Prafulla Wadaskar --- diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 28dc2d605d..ee067cbd81 100644 --- a/tools/kwbimage.c +++ b/tools/kwbimage.c @@ -131,7 +131,7 @@ static uint32_t kwbimage_checksum32 (uint32_t *start, uint32_t len, uint32_t csu return 0; if (len % sizeof(uint32_t)) { - printf ("Error:%s[%d] - lenght is not in multiple of %d\n", + printf ("Error:%s[%d] - lenght is not in multiple of %ld\n", __FUNCTION__, len, sizeof(uint32_t)); return 0; }