diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-13 19:51:00 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-13 19:51:00 +0200 |
commit | d5996dd555edf52721b7691a4c59de016251ed39 (patch) | |
tree | b22b9dceee9d79106c4bb19bc115121d33da0d82 /common | |
parent | 0f9d5f6d6e814907794995c6a22af752040c35d9 (diff) |
Fix some more printf() format problems.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_flash.c | 4 | ||||
-rw-r--r-- | common/cmd_nvedit.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/common/cmd_flash.c b/common/cmd_flash.c index 1dd0c99ff7a..9bd8074bfb3 100644 --- a/common/cmd_flash.c +++ b/common/cmd_flash.c @@ -342,7 +342,7 @@ int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) puts ("Bad sector specification\n"); return 1; } - printf ("Erase Flash Sectors %d-%d in Bank # %ld ", + printf ("Erase Flash Sectors %d-%d in Bank # %d ", sect_first, sect_last, (info-flash_info)+1); rcode = flash_erase(info, sect_first, sect_last); return rcode; @@ -534,7 +534,7 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) puts ("Bad sector specification\n"); return 1; } - printf("%sProtect Flash Sectors %d-%d in Bank # %ld\n", + printf("%sProtect Flash Sectors %d-%d in Bank # %d\n", p ? "" : "Un-", sect_first, sect_last, (info-flash_info)+1); for (i = sect_first; i <= sect_last; i++) { diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c index aaf6d98da88..70897062a6f 100644 --- a/common/cmd_nvedit.c +++ b/common/cmd_nvedit.c @@ -99,7 +99,8 @@ int do_printenv (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) } } - printf("\nEnvironment size: %d/%ld bytes\n", i, ENV_SIZE); + printf("\nEnvironment size: %d/%ld bytes\n", + i, (ulong)ENV_SIZE); return 0; } |