]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cmd_ext2.c: fix compile warnings
authorWolfgang Denk <wd@denx.de>
Tue, 28 Apr 2009 06:50:31 +0000 (08:50 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 28 Apr 2009 06:50:31 +0000 (08:50 +0200)
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>
common/cmd_ext2.c

index 8e316c7590813c99f6eae8c3e05f68b75a2e2cf2..923b355673d276bc42fd921c69533d4475fd4b2a 100644 (file)
@@ -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);