summaryrefslogtreecommitdiffstats
path: root/sst_fwhub.c
diff options
context:
space:
mode:
authorSean Nelson <audiohacked@gmail.com>2010-03-24 23:14:32 +0000
committerSean Nelson <audiohacked@gmail.com>2010-03-24 23:14:32 +0000
commited479d2a8728dc12f1f78170cacfaf542cd0b44e (patch)
tree50b12e054fcff9b0cabbf916d2d049d00f2bf8e5 /sst_fwhub.c
parent93539dad8d6c0336f60c50966a2dc3a34736165d (diff)
downloadast2050-flashrom-ed479d2a8728dc12f1f78170cacfaf542cd0b44e.zip
ast2050-flashrom-ed479d2a8728dc12f1f78170cacfaf542cd0b44e.tar.gz
Convert chips' message printing to msg_c* Fixed suggestions by Carl-Daniel
Corresponding to flashrom svn r982. Signed-off-by: Sean Nelson <audiohacked@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'sst_fwhub.c')
-rw-r--r--sst_fwhub.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sst_fwhub.c b/sst_fwhub.c
index 328d39a..2b867c8 100644
--- a/sst_fwhub.c
+++ b/sst_fwhub.c
@@ -33,20 +33,20 @@ int check_sst_fwhub_block_lock(struct flashchip *flash, int offset)
uint8_t blockstatus;
blockstatus = chip_readb(registers + offset + 2);
- printf_debug("Lock status for 0x%06x (size 0x%06x) is %02x, ",
+ msg_cdbg("Lock status for 0x%06x (size 0x%06x) is %02x, ",
offset, flash->page_size, blockstatus);
switch (blockstatus & 0x3) {
case 0x0:
- printf_debug("full access\n");
+ msg_cdbg("full access\n");
break;
case 0x1:
- printf_debug("write locked\n");
+ msg_cdbg("write locked\n");
break;
case 0x2:
- printf_debug("locked open\n");
+ msg_cdbg("locked open\n");
break;
case 0x3:
- printf_debug("write locked down\n");
+ msg_cdbg("write locked down\n");
break;
}
/* Return content of the write_locked bit */
@@ -61,11 +61,11 @@ int clear_sst_fwhub_block_lock(struct flashchip *flash, int offset)
blockstatus = check_sst_fwhub_block_lock(flash, offset);
if (blockstatus) {
- printf_debug("Trying to clear lock for 0x%06x... ", offset)
+ msg_cdbg("Trying to clear lock for 0x%06x... ", offset);
chip_writeb(0, registers + offset + 2);
blockstatus = check_sst_fwhub_block_lock(flash, offset);
- printf_debug("%s\n", (blockstatus) ? "failed" : "OK");
+ msg_cdbg("%s\n", (blockstatus) ? "failed" : "OK");
}
return blockstatus;
OpenPOWER on IntegriCloud