diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-04-06 00:16:58 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-04-06 00:16:58 +0200 |
commit | 71b405df4e8efc0d6ac3b308d15e74eaa029eb5c (patch) | |
tree | 4733e2865b61662f2b9f690f1ba79bf630b6f4b8 /common | |
parent | 197b049b8b8a488384f351b988dd15f78830ba4e (diff) | |
parent | 2662b40cace272da5759040622561d821c878d56 (diff) | |
download | u-boot-71b405df4e8efc0d6ac3b308d15e74eaa029eb5c.tar.gz u-boot-71b405df4e8efc0d6ac3b308d15e74eaa029eb5c.tar.bz2 u-boot-71b405df4e8efc0d6ac3b308d15e74eaa029eb5c.zip |
Merge with /home/sr/git/u-boot/cfi-flash
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_flash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/cmd_flash.c b/common/cmd_flash.c index 0aa478306b..201f4e33d4 100644 --- a/common/cmd_flash.c +++ b/common/cmd_flash.c @@ -455,6 +455,7 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) #ifdef CONFIG_HAS_DATAFLASH int status; #endif + if (argc < 3) { printf ("Usage:\n%s\n", cmdtp->usage); return 1; @@ -655,10 +656,10 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last) #endif /* CFG_FLASH_PROTECTION */ } } + } #if defined(CFG_FLASH_PROTECTION) - if (!rcode) putc ('\n'); + puts (" done\n"); #endif /* CFG_FLASH_PROTECTION */ - } printf ("%sProtected %d sectors\n", p ? "" : "Un-", protected); |