summaryrefslogtreecommitdiff
path: root/fs/ubifs/ubifs.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/ubifs/ubifs.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/ubifs/ubifs.c')
-rw-r--r--fs/ubifs/ubifs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index 44be3f5..273c0a9 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -687,7 +687,6 @@ int ubifs_load(char *filename, u32 addr, u32 size)
int i;
int count;
int last_block_size = 0;
- char buf [10];
c->ubi = ubi_open_volume(c->vi.ubi_num, c->vi.vol_id, UBI_READONLY);
/* ubifs_findfile will resolve symlinks, so we know that we get
@@ -740,8 +739,7 @@ int ubifs_load(char *filename, u32 addr, u32 size)
if (err)
printf("Error reading file '%s'\n", filename);
else {
- sprintf(buf, "%X", size);
- setenv("filesize", buf);
+ setenv_hex("filesize", size);
printf("Done\n");
}