From: Heinrich Schuchardt Date: Sun, 6 Jan 2019 11:34:16 +0000 (+0100) Subject: cmd: unzip: use correct format code X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=9ae2ddc82e80e937e5da235a4c66fc3af5c91fc7;p=u-boot.git cmd: unzip: use correct format code src_len is defined as unsigned long. So use %lu for printf(). Signed-off-by: Heinrich Schuchardt --- diff --git a/cmd/unzip.c b/cmd/unzip.c index f7aabf72d1..6c0f97cb4b 100644 --- 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: %ld = 0x%lX\n", src_len, src_len); + printf("Uncompressed size: %lu = 0x%lX\n", src_len, src_len); env_set_hex("filesize", src_len); return 0;