From: Wolfgang Denk <w...@denx.de>

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 <w...@denx.de>
---
 common/cmd_ext2.c |    4 ++--
 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);
-- 
1.6.0.6

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to