summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstroese <stroese>2003-12-09 14:58:22 +0000
committerstroese <stroese>2003-12-09 14:58:22 +0000
commitabcac8725f77881aa7076b892741b1675df1a65a (patch)
tree9e17da4556bac025990ab1e52f6f980a2d96522b
parent38a951956b90c7f25abf893d8a21528379e3d8b6 (diff)
downloadu-boot-imx-abcac8725f77881aa7076b892741b1675df1a65a.zip
u-boot-imx-abcac8725f77881aa7076b892741b1675df1a65a.tar.gz
u-boot-imx-abcac8725f77881aa7076b892741b1675df1a65a.tar.bz2
Fix output for "Unprotecting".
-rw-r--r--common/cmd_flash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/cmd_flash.c b/common/cmd_flash.c
index a51b5e9..253f9ef 100644
--- a/common/cmd_flash.c
+++ b/common/cmd_flash.c
@@ -463,7 +463,8 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
}
if (s_first[bank]>=0 && s_first[bank]<=s_last[bank]) {
- debug ("Protecting sectors %d..%d in bank %ld\n",
+ debug ("%sProtecting sectors %d..%d in bank %ld\n",
+ p ? "" : "Un-",
s_first[bank], s_last[bank], bank+1);
protected += s_last[bank] - s_first[bank] + 1;
for (i=s_first[bank]; i<=s_last[bank]; ++i) {