i2c: designware: Make debug print in i2c_dw_isr() shorter
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Fri, 7 Aug 2015 11:53:03 +0000 (14:53 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:36 +0000 (08:37 +0200)
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@linux.intel.com>
[wsa: made it a oneliner]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.c

index 6f19a33773fe79dd4ef27643232b2df1e5bba66b..7441cdc1b34a6a67f85fd3bfd71db40b5076734c 100644 (file)
@@ -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;