Hello,

I think the first shift should be a 0 since the one below it is 1,
then 2, then 3, etc.

Signed-off-by: Joshua Roys <[email protected]>

Thanks,

Josh
From 3ae3e68527b84bb2de0fed0629824e9f7c08a885 Mon Sep 17 00:00:00 2001
From: Joshua Roys <[email protected]>
Date: Sun, 29 Aug 2010 11:00:39 -0400
Subject: [PATCH] Fix a bitmask in it87spi_probe.

Signed-off-by: Joshua Roys <[email protected]>
---
 it87spi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/it87spi.c b/it87spi.c
index ed6bae5..496c321 100644
--- a/it87spi.c
+++ b/it87spi.c
@@ -116,7 +116,7 @@ static uint16_t it87spi_probe(uint16_t port)
                return 1;
        }
        msg_pdbg("Serial flash segment 0x%08x-0x%08x %sabled\n",
-                0xFFFE0000, 0xFFFFFFFF, (tmp & 1 << 1) ? "en" : "dis");
+                0xFFFE0000, 0xFFFFFFFF, (tmp & 1 << 0) ? "en" : "dis");
        msg_pdbg("Serial flash segment 0x%08x-0x%08x %sabled\n",
                 0x000E0000, 0x000FFFFF, (tmp & 1 << 1) ? "en" : "dis");
        msg_pdbg("Serial flash segment 0x%08x-0x%08x %sabled\n",
-- 
1.7.2.2

_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to