X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=common%2Fcmd_ext2.c;h=6ee60c66f2169b672c3e9ffd8d2f4310d2351552;hb=a89c33db96a1e55319a286dd4c3c05ca64ac6bfd;hp=c2dcc6436e5d39ac23ef2e32ecc7ddc0810a21e2;hpb=ea393eb1d6a786fc2e895f90abb5f7e7541aef45;p=platform%2Fkernel%2Fu-boot.git diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c index c2dcc64..6ee60c6 100644 --- a/common/cmd_ext2.c +++ b/common/cmd_ext2.c @@ -118,7 +118,7 @@ U_BOOT_CMD( ext2ls, 4, 1, do_ext2ls, "list files in a directory (default /)", " [directory]\n" - " - list files from 'dev' on 'interface' in a 'directory'\n" + " - list files from 'dev' on 'interface' in a 'directory'" ); /****************************************************************************** @@ -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); @@ -255,5 +256,5 @@ U_BOOT_CMD( "load binary file from a Ext2 filesystem", " [addr] [filename] [bytes]\n" " - load binary file 'filename' from 'dev' on 'interface'\n" - " to address 'addr' from ext2 filesystem\n" + " to address 'addr' from ext2 filesystem" );