summaryrefslogtreecommitdiff
path: root/cmd/unzip.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-01-06 12:34:16 +0100
committerTom Rini <trini@konsulko.com>2019-01-15 15:28:44 -0500
commit9ae2ddc82e80e937e5da235a4c66fc3af5c91fc7 (patch)
tree012f2b0b8eee995aad22d6905e73d305657a9967 /cmd/unzip.c
parent76428561b343daafc163e4bf1d6b5e8f5454d63a (diff)
cmd: unzip: use correct format code
src_len is defined as unsigned long. So use %lu for printf(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd/unzip.c')
-rw-r--r--cmd/unzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/unzip.c b/cmd/unzip.c
index f7aabf72d1..6c0f97cb4b 100644
--- a/cmd/unzip.c
+++ b/cmd/unzip.c
@@ -27,7 +27,7 @@ static int do_unzip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (gunzip((void *) dst, dst_len, (void *) src, &src_len) != 0)
return 1;
- printf("Uncompressed size: %ld = 0x%lX\n", src_len, src_len);
+ printf("Uncompressed size: %lu = 0x%lX\n", src_len, src_len);
env_set_hex("filesize", src_len);
return 0;