summaryrefslogtreecommitdiff
path: root/common/cmd_cbfs.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-02-24 17:33:22 +0000
committerSimon Glass <sjg@chromium.org>2013-02-28 19:09:23 -0800
commit41ef372c1a2d344621c74aa4bce5cdb0970ba5f1 (patch)
tree9abdeda0b3b87a70e4f3929e83ddd15f4704377f /common/cmd_cbfs.c
parentbfc59966431e6335fd5be0589eec073902cc7bb3 (diff)
downloadu-boot-imx-41ef372c1a2d344621c74aa4bce5cdb0970ba5f1.zip
u-boot-imx-41ef372c1a2d344621c74aa4bce5cdb0970ba5f1.tar.gz
u-boot-imx-41ef372c1a2d344621c74aa4bce5cdb0970ba5f1.tar.bz2
common: Use new numeric setenv functions
Use setenv_ulong(), setenv_hex() and setenv_addr() in common/ Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/cmd_cbfs.c')
-rw-r--r--common/cmd_cbfs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/cmd_cbfs.c b/common/cmd_cbfs.c
index 3b6cfd8..f51534b 100644
--- a/common/cmd_cbfs.c
+++ b/common/cmd_cbfs.c
@@ -65,7 +65,6 @@ int do_cbfs_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
const struct cbfs_cachenode *file;
unsigned long offset;
unsigned long count;
- char buf[12];
long size;
if (argc < 3) {
@@ -95,8 +94,7 @@ int do_cbfs_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
printf("\n%ld bytes read\n", size);
- sprintf(buf, "%lX", size);
- setenv("filesize", buf);
+ setenv_hex("filesize", size);
return 0;
}