[linux-yocto] [PATCH 08/17] i2c: designware: Make debug print in i2c_dw_isr() shorter
weifeng.voon at intel.com
weifeng.voon at intel.com
Thu Mar 24 18:38:04 PDT 2016
From: Jarkko Nikula <jarkko.nikula at linux.intel.com>
Printing adapter name is irrelevant from this debug print and makes output
needlessly long. Having already device and functions names printed here is
enough for debugging.
While at it remove extra space from "enabled= 0x" and use "%#x" for
printing "0x" prefixed hexadecimal values.
Signed-off-by: Jarkko Nikula <jarkko.nikula at linux.intel.com>
[wsa: made it a oneliner]
Signed-off-by: Wolfram Sang <wsa at the-dreams.de>
(cherry picked from commit fb427466dcde21fc4aab27153735bdd5c62b422d)
Signed-off-by: Voon, Weifeng <weifeng.voon at intel.com>
---
drivers/i2c/busses/i2c-designware-core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-designware-core.c b/drivers/i2c/busses/i2c-designware-core.c
index 75b1ffd..142219c 100644
--- a/drivers/i2c/busses/i2c-designware-core.c
+++ b/drivers/i2c/busses/i2c-designware-core.c
@@ -777,8 +777,7 @@ irqreturn_t i2c_dw_isr(int this_irq, void *dev_id)
enabled = dw_readl(dev, DW_IC_ENABLE);
stat = dw_readl(dev, DW_IC_RAW_INTR_STAT);
- dev_dbg(dev->dev, "%s: %s enabled= 0x%x stat=0x%x\n", __func__,
- dev->adapter.name, enabled, stat);
+ dev_dbg(dev->dev, "%s: enabled=%#x stat=%#x\n", __func__, enabled, stat);
if (!enabled || !(stat & ~DW_IC_INTR_ACTIVITY))
return IRQ_NONE;
--
1.9.1
More information about the linux-yocto
mailing list