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>
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 @@
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 @@
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;