Skip to content
Snippets Groups Projects
Commit 4d9eab89 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

cmd_ext2.c: fix compile warnings


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: default avatarWolfgang Denk <wd@denx.de>
parent 28afe016
No related branches found
No related tags found
No related merge requests found
...@@ -244,8 +244,8 @@ int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) ...@@ -244,8 +244,8 @@ int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
/* Loading ok, update default load address */ /* Loading ok, update default load address */
load_addr = addr; load_addr = addr;
printf ("\n%ld bytes read\n", filelen); printf ("\n%d bytes read\n", filelen);
sprintf(buf, "%lX", filelen); sprintf(buf, "%X", filelen);
setenv("filesize", buf); setenv("filesize", buf);
return(filelen); return(filelen);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment