diff options
author | Tom Rini <trini@konsulko.com> | 2015-08-26 15:18:30 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-08-28 14:01:11 -0400 |
commit | a679cc0118f6bec16c82d2c44f8a980f6f319bde (patch) | |
tree | 16409717473309333e1a741d78f4d6a0bad9de4c /tools/atmelimage.c | |
parent | 504de98a3b18b4bf88e5ff6c7efb804407fa5930 (diff) | |
download | u-boot-imx-a679cc0118f6bec16c82d2c44f8a980f6f319bde.zip u-boot-imx-a679cc0118f6bec16c82d2c44f8a980f6f319bde.tar.gz u-boot-imx-a679cc0118f6bec16c82d2c44f8a980f6f319bde.tar.bz2 |
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 <andreas.devel@googlemail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/atmelimage.c')
-rw-r--r-- | tools/atmelimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/atmelimage.c b/tools/atmelimage.c index 5b72ac5..6b5603e 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 |