From patchwork Sun Aug 29 15:07:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix a bitmask in it87spi_probe. Date: Sun, 29 Aug 2010 14:07:39 -0000 From: Joshua Roys X-Patchwork-Id: 1808 Message-Id: To: flashrom@flashrom.org 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 Thanks, Josh >From 3ae3e68527b84bb2de0fed0629824e9f7c08a885 Mon Sep 17 00:00:00 2001 From: Joshua Roys Date: Sun, 29 Aug 2010 11:00:39 -0400 Subject: [PATCH] Fix a bitmask in it87spi_probe. Signed-off-by: Joshua Roys --- 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",