Skip to content
Snippets Groups Projects
Commit 1bb718cd authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

lzmadec: Use the same type as the lzma call


With sandbox on 32-bit the size_t type can be a little inconsistent. Use
the same type as the caller expects to avoid a compiler warning.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 5923c843
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
static int do_lzmadec(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) static int do_lzmadec(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{ {
unsigned long src, dst; unsigned long src, dst;
unsigned long src_len = ~0UL, dst_len = ~0UL; SizeT src_len = ~0UL, dst_len = ~0UL;
int ret; int ret;
switch (argc) { switch (argc) {
...@@ -40,7 +40,8 @@ static int do_lzmadec(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) ...@@ -40,7 +40,8 @@ static int do_lzmadec(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
if (ret != SZ_OK) if (ret != SZ_OK)
return 1; return 1;
printf("Uncompressed size: %ld = 0x%lX\n", src_len, src_len); printf("Uncompressed size: %ld = %#lX\n", (ulong)src_len,
(ulong)src_len);
setenv_hex("filesize", src_len); setenv_hex("filesize", src_len);
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment