Commit d667090999236ddbf8bbbc98dc576bf301db59d0
Committed by
Tom Rini
1 parent
9ae2ddc82e
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
cmd/zip.c
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 | if (gzip((void *) dst, &dst_len, (void *) src, src_len) != 0) |
29 | 29 | return 1; |
30 | 30 | |
31 | - printf("Compressed size: %ld = 0x%lX\n", dst_len, dst_len); | |
31 | + printf("Compressed size: %lu = 0x%lX\n", dst_len, dst_len); | |
32 | 32 | env_set_hex("filesize", dst_len); |
33 | 33 | |
34 | 34 | return 0; |