summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-01-06 12:38:37 +0100
committerTom Rini <trini@konsulko.com>2019-01-15 15:28:44 -0500
commitd667090999236ddbf8bbbc98dc576bf301db59d0 (patch)
tree41a8b1b69c8d0bd5a9a6b7293c3af90dac49c8ff /cmd
parent9ae2ddc82e80e937e5da235a4c66fc3af5c91fc7 (diff)
cmd: zip: use correct format code
dst_len is defined as unsigned long. So use %lu for printf(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/zip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zip.c b/cmd/zip.c
index d105d84e38..9cd400a7e8 100644
--- 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: %ld = 0x%lX\n", dst_len, dst_len);
+ printf("Compressed size: %lu = 0x%lX\n", dst_len, dst_len);
env_set_hex("filesize", dst_len);
return 0;