mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 04:44:46 +00:00
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>
This commit is contained in:
parent
9ae2ddc82e
commit
d667090999
1 changed files with 1 additions and 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)
|
if (gzip((void *) dst, &dst_len, (void *) src, src_len) != 0)
|
||||||
return 1;
|
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);
|
env_set_hex("filesize", dst_len);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue