Skip to content
Snippets Groups Projects
Commit 9ef45c84 authored by Wolfgang Denk's avatar Wolfgang Denk Committed by Tom Rix
Browse files

kwbimage.c: Fix compile warning when building on 64 bit systems (again)


Commit 51003b89 attempted to fix a build problem on 64 bit systems,
but just turned it into a build problem on 32 bit systems (silly me).

Now do the Right Thing (TM) and use a "%zu" printf format.

Also fix spelling error.

Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent d181074a
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,7 @@ static uint32_t kwbimage_checksum32 (uint32_t *start, uint32_t len, uint32_t csu ...@@ -131,7 +131,7 @@ static uint32_t kwbimage_checksum32 (uint32_t *start, uint32_t len, uint32_t csu
return 0; return 0;
if (len % sizeof(uint32_t)) { if (len % sizeof(uint32_t)) {
printf ("Error:%s[%d] - lenght is not in multiple of %ld\n", printf ("Error:%s[%d] - length is not in multiple of %zu\n",
__FUNCTION__, len, sizeof(uint32_t)); __FUNCTION__, len, sizeof(uint32_t));
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment