am65x_evm_a53_defconfig: Enable configs to support USB and DFU
[oweals/u-boot.git] / cmd / zip.c
index d105d84e380c6c36c84e50eb5e999d8af8a0dcf2..8ef46e9815f7fd173eecb90d5177bd2f30dc9201 100644 (file)
--- a/cmd/zip.c
+++ b/cmd/zip.c
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <env.h>
 
 static int do_zip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
@@ -28,7 +29,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;