summaryrefslogtreecommitdiff
path: root/common/cmd_ext2.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_ext2.c')
-rw-r--r--common/cmd_ext2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c
index c2dcc6436e..923b355673 100644
--- a/common/cmd_ext2.c
+++ b/common/cmd_ext2.c
@@ -129,7 +129,8 @@ int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
char *filename = NULL;
char *ep;
int dev, part = 1;
- ulong addr = 0, part_length, filelen;
+ ulong addr = 0, part_length;
+ int filelen;
disk_partition_t info;
block_dev_desc_t *dev_desc = NULL;
char buf [12];
@@ -243,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);