summaryrefslogtreecommitdiff
path: root/fs/fs.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-02-24 17:33:23 +0000
committerSimon Glass <sjg@chromium.org>2013-02-28 19:09:23 -0800
commit49c4f0370ba917a2608e933ca541898e9c098397 (patch)
treed1a119a7aefc1c3874f40609b9d8b0b61a5d424d /fs/fs.c
parent41ef372c1a2d344621c74aa4bce5cdb0970ba5f1 (diff)
downloadu-boot-imx-49c4f0370ba917a2608e933ca541898e9c098397.zip
u-boot-imx-49c4f0370ba917a2608e933ca541898e9c098397.tar.gz
u-boot-imx-49c4f0370ba917a2608e933ca541898e9c098397.tar.bz2
fs: Use new numeric setenv functions
Use setenv_ulong(), setenv_hex() and setenv_addr() in fs/ Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'fs/fs.c')
-rw-r--r--fs/fs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 023e7ef..2c9f2c5 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -256,7 +256,6 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
unsigned long bytes;
unsigned long pos;
int len_read;
- char buf[12];
unsigned long time;
if (argc < 2)
@@ -308,8 +307,7 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
}
puts("\n");
- sprintf(buf, "0x%x", len_read);
- setenv("filesize", buf);
+ setenv_hex("filesize", len_read);
return 0;
}