[coreboot] [flashrom] r466 - trunk

svn at coreboot.org svn at coreboot.org
Wed May 6 15:43:26 CEST 2009


Author: stuge
Date: 2009-05-06 15:43:26 +0200 (Wed, 06 May 2009)
New Revision: 466

Modified:
   trunk/chipset_enable.c
Log:
Cleanup redundant condition and clarify message a little.

Signed-off-by: Peter Stuge <peter at stuge.se>
Acked-by: Peter Stuge <peter at stuge.se>


Modified: trunk/chipset_enable.c
===================================================================
--- trunk/chipset_enable.c	2009-05-06 13:38:55 UTC (rev 465)
+++ trunk/chipset_enable.c	2009-05-06 13:43:26 UTC (rev 466)
@@ -675,12 +675,11 @@
 		prot &= 0xfffffffc;
 		pci_write_byte(dev, reg, prot);
 		prot = pci_read_long(dev, reg);
-		if (prot & 0x3)
-			printf("SB600 still %s%sprotected from %u to %u\n",
-				(prot & 0x1) ? "write " : "",
-				(prot & 0x2) ? "read " : "",
-				(prot & 0xfffffc00),
-				(prot & 0xfffffc00) + ((prot & 0x3ff) << 8));
+		printf("SB600 %s%sunprotect failed from %u to %u\n",
+			(prot & 0x1) ? "write " : "",
+			(prot & 0x2) ? "read " : "",
+			(prot & 0xfffffc00),
+			(prot & 0xfffffc00) + ((prot & 0x3ff) << 8));
 	}
 
 	/* Read SPI_BaseAddr */





More information about the coreboot mailing list