]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix output for "Unprotecting".
authorstroese <stroese>
Tue, 9 Dec 2003 14:58:22 +0000 (14:58 +0000)
committerstroese <stroese>
Tue, 9 Dec 2003 14:58:22 +0000 (14:58 +0000)
common/cmd_flash.c

index a51b5e998cd1e79e6b028f7c322d1bedd99e2d5c..253f9efbcc01cfe1c63e2d5c8e360cfc4cf0c251 100644 (file)
@@ -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) {