projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7642856
)
cmd: unzip: use correct format code
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 6 Jan 2019 11:34:16 +0000
(12:34 +0100)
committer
Tom Rini
<trini@konsulko.com>
Tue, 15 Jan 2019 20:28:44 +0000
(15:28 -0500)
src_len is defined as unsigned long. So use %lu for printf().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/unzip.c
patch
|
blob
|
history
diff --git
a/cmd/unzip.c
b/cmd/unzip.c
index f7aabf72d1e73ae64c5255adf8299bac3aeb45da..6c0f97cb4bb5d6fe1d6c456d7f3ea5b538d518a1 100644
(file)
--- 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: %l
d
= 0x%lX\n", src_len, src_len);
+ printf("Uncompressed size: %l
u
= 0x%lX\n", src_len, src_len);
env_set_hex("filesize", src_len);
return 0;