[U-Boot] [PATCH 1/1] cmd: zip: use correct format code
Heinrich Schuchardt
xypron.glpk at gmx.de
Sun Jan 6 11:38:37 UTC 2019
dst_len is defined as unsigned long. So use %lu for printf().
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
cmd/zip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/zip.c b/cmd/zip.c
index d105d84e38..6b429ff285 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;
--
2.20.1
More information about the U-Boot
mailing list