projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ae2ddc
)
cmd: zip: use correct format code
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 6 Jan 2019 11:38:37 +0000
(12:38 +0100)
committer
Tom Rini
<trini@konsulko.com>
Tue, 15 Jan 2019 20:28:44 +0000
(15:28 -0500)
dst_len is defined as unsigned long. So use %lu for printf().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/zip.c
patch
|
blob
|
history
diff --git
a/cmd/zip.c
b/cmd/zip.c
index d105d84e380c6c36c84e50eb5e999d8af8a0dcf2..9cd400a7e80f2053edfa7054a164b44c971ebf90 100644
(file)
--- a/
cmd/zip.c
+++ b/
cmd/zip.c
@@
-28,7
+28,7
@@
static int do_zip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (gzip((void *) dst, &dst_len, (void *) src, src_len) != 0)
return 1;
- printf("Compressed size: %l
d
= 0x%lX\n", dst_len, dst_len);
+ printf("Compressed size: %l
u
= 0x%lX\n", dst_len, dst_len);
env_set_hex("filesize", dst_len);
return 0;