From: stroese <stroese>
Date: Tue, 9 Dec 2003 14:58:22 +0000 (+0000)
Subject: Fix output for "Unprotecting".
X-Git-Tag: v2025.01-rc5-pxa1908~23764
X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-favicon.png?a=commitdiff_plain;h=abcac8725f77881aa7076b892741b1675df1a65a;p=u-boot.git

Fix output for "Unprotecting".
---

diff --git a/common/cmd_flash.c b/common/cmd_flash.c
index a51b5e998c..253f9efbcc 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) {