diff options
author | Tom Rini <trini@ti.com> | 2013-03-04 11:14:27 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-03-04 11:14:27 -0500 |
commit | 1c9f47ab2a2e9b62d08d39bfb9c4adc8f8edc5da (patch) | |
tree | fa4ee32d67f02d1c8fa80a55b9d85982cedac062 /common/cmd_ximg.c | |
parent | c259188b203d95e4a854e7e29b9e4472cc982f65 (diff) | |
parent | 218da0f35f4b5e5bf13d3dba6d975d4d5d65516f (diff) | |
download | u-boot-imx-1c9f47ab2a2e9b62d08d39bfb9c4adc8f8edc5da.zip u-boot-imx-1c9f47ab2a2e9b62d08d39bfb9c4adc8f8edc5da.tar.gz u-boot-imx-1c9f47ab2a2e9b62d08d39bfb9c4adc8f8edc5da.tar.bz2 |
Merge branch 'mem' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'common/cmd_ximg.c')
-rw-r--r-- | common/cmd_ximg.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c index 42a7eba..ea0a26e 100644 --- a/common/cmd_ximg.c +++ b/common/cmd_ximg.c @@ -50,7 +50,6 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) ulong data, len, count; int verify; int part = 0; - char pbuf[10]; image_header_t *hdr; #if defined(CONFIG_FIT) const char *uname = NULL; @@ -256,10 +255,8 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) puts("OK\n"); } - sprintf(pbuf, "%8lx", data); - setenv("fileaddr", pbuf); - sprintf(pbuf, "%8lx", len); - setenv("filesize", pbuf); + setenv_hex("fileaddr", data); + setenv_hex("filesize", len); return 0; } |