summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-04-06 00:16:58 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-04-06 00:16:58 +0200
commit71b405df4e8efc0d6ac3b308d15e74eaa029eb5c (patch)
tree4733e2865b61662f2b9f690f1ba79bf630b6f4b8 /common
parent197b049b8b8a488384f351b988dd15f78830ba4e (diff)
parent2662b40cace272da5759040622561d821c878d56 (diff)
downloadu-boot-imx-71b405df4e8efc0d6ac3b308d15e74eaa029eb5c.zip
u-boot-imx-71b405df4e8efc0d6ac3b308d15e74eaa029eb5c.tar.gz
u-boot-imx-71b405df4e8efc0d6ac3b308d15e74eaa029eb5c.tar.bz2
Merge with /home/sr/git/u-boot/cfi-flash
Diffstat (limited to 'common')
-rw-r--r--common/cmd_flash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/cmd_flash.c b/common/cmd_flash.c
index 0aa4783..201f4e3 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);