From: Heinrich Schuchardt Date: Sun, 6 Jan 2019 11:38:37 +0000 (+0100) Subject: cmd: zip: use correct format code X-Git-Tag: v2019.04-rc1~44^2~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d667090999236ddbf8bbbc98dc576bf301db59d0;p=oweals%2Fu-boot.git cmd: zip: use correct format code dst_len is defined as unsigned long. So use %lu for printf(). Signed-off-by: Heinrich Schuchardt --- 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;