diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-01-06 12:38:37 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-01-15 15:28:44 -0500 |
commit | d667090999236ddbf8bbbc98dc576bf301db59d0 (patch) | |
tree | 41a8b1b69c8d0bd5a9a6b7293c3af90dac49c8ff /cmd/zip.c | |
parent | 9ae2ddc82e80e937e5da235a4c66fc3af5c91fc7 (diff) | |
download | u-boot-d667090999236ddbf8bbbc98dc576bf301db59d0.tar.gz |
cmd: zip: use correct format code
dst_len is defined as unsigned long. So use %lu for printf().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd/zip.c')
-rw-r--r-- | cmd/zip.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |