cmd: zip: use correct format code
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 6 Jan 2019 11:38:37 +0000 (12:38 +0100)
committerTom 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

index d105d84..9cd400a 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: %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;