summaryrefslogtreecommitdiff
path: root/common/cmd_ext2.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-04-28 08:50:31 +0200
committerWolfgang Denk <wd@denx.de>2009-04-28 08:50:31 +0200
commit4d9eab89b3b2c2ed432b14d355a56f274d8aac75 (patch)
tree2e96288ed412a7c167ca70aad62dee70d873a9ec /common/cmd_ext2.c
parent28afe0160f87ff74574150d703055a965f91422a (diff)
downloadu-boot-imx-4d9eab89b3b2c2ed432b14d355a56f274d8aac75.zip
u-boot-imx-4d9eab89b3b2c2ed432b14d355a56f274d8aac75.tar.gz
u-boot-imx-4d9eab89b3b2c2ed432b14d355a56f274d8aac75.tar.bz2
cmd_ext2.c: fix compile warnings
Get rid of these warnings: cmd_ext2.c:247: warning: format '%ld' expects type 'long int', but argument 2 has type 'int' cmd_ext2.c:248: warning: format '%lX' expects type 'long unsigned int', but argument 3 has type 'int' Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common/cmd_ext2.c')
-rw-r--r--common/cmd_ext2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c
index 8e316c7..923b355 100644
--- a/common/cmd_ext2.c
+++ b/common/cmd_ext2.c
@@ -244,8 +244,8 @@ int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
/* Loading ok, update default load address */
load_addr = addr;
- printf ("\n%ld bytes read\n", filelen);
- sprintf(buf, "%lX", filelen);
+ printf ("\n%d bytes read\n", filelen);
+ sprintf(buf, "%X", filelen);
setenv("filesize", buf);
return(filelen);