]> Git Repo - J-u-boot.git/commitdiff
kwbimage.c: Fix compile warning when building on 64 bit systems
authorWolfgang Denk <[email protected]>
Fri, 11 Sep 2009 06:58:11 +0000 (08:58 +0200)
committerWolfgang Denk <[email protected]>
Fri, 11 Sep 2009 07:11:03 +0000 (09:11 +0200)
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 <[email protected]>
Cc: Prafulla Wadaskar <[email protected]>
tools/kwbimage.c

index 28dc2d605dfd65e923cb9ff5173f6f3ade215639..ee067cbd81deee9b5747551590a890d1d7fe7826 100644 (file)
@@ -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;
        }
This page took 0.035686 seconds and 4 git commands to generate.