mips: mtmips: make use of sysreset-resetctrl for mt7628 soc
[oweals/u-boot.git] / cmd / zip.c
index 7fcd9d5bf8731f1aa9ddd10185994b1ca09e2768..8ef46e9815f7fd173eecb90d5177bd2f30dc9201 100644 (file)
--- a/cmd/zip.c
+++ b/cmd/zip.c
@@ -1,12 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2012
  * Lei Wen <leiwen@marvell.com>, Marvell Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <command.h>
+#include <env.h>
 
 static int do_zip(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
@@ -29,8 +29,8 @@ 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);
-       setenv_hex("filesize", dst_len);
+       printf("Compressed size: %lu = 0x%lX\n", dst_len, dst_len);
+       env_set_hex("filesize", dst_len);
 
        return 0;
 }