cmd_ext2.c: fix compile warnings
[pandora-u-boot.git] / common / cmd_ext2.c
index 8e316c7..923b355 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);