i2c: designware: Remove space between variable and its value in debug print
Subsystems (3)
PATCH 1/2 i2c: designware: Remove space between variable and its value in debug print
Remove extra space from "enabled= 0x" to make debug print a bit more dense and to be in sync with "stat=0x". While at it, use "%#x" for printing "0x" prefixed hexadecimal values.
--- drivers/i2c/busses/i2c-designware-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-designware-core.c +1 -1
@@ -777,7 +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_dbg (dev->dev,"%s: %s enabled=%#x stat=%#x\n" , __func__, dev->adapter.name, enabled, stat);if (!enabled || !(stat & ~DW_IC_INTR_ACTIVITY ))return IRQ_NONE ;
Signature · 1 line
2.4.6
A message that is not in the archive (sent off-list or not yet received): 1438944208-16276-1-git-send-email-jarkko.nikula-VuQAYsv1563Yd54FQh9/[email protected]
PATCH 2/2 i2c: designware: Remove adapter name from debug print in i2c_dw_isr()
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.
--- drivers/i2c/busses/i2c-designware-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/busses/i2c-designware-core.c +2 -2
@@ -777,8 +777,8 @@ 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=%#x stat=%#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 ;
Signature · 1 line
2.4.6
A message that is not in the archive (sent off-list or not yet received): 1438944208-16276-2-git-send-email-jarkko.nikula-VuQAYsv1563Yd54FQh9/[email protected]
Re: [PATCH 2/2] i2c: designware: Remove adapter name from debug print in i2c_dw_isr()
Quoted 5 lines · Jarkko Nikula
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.
So much about the double space :) I think I'll squash those two.
Re: [PATCH 2/2] i2c: designware: Remove adapter name from debug print in i2c_dw_isr()
Quoted 9 lines · Wolfram Sang
Quoted 5 lines · Jarkko Nikula
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.
So much about the double space :) I think I'll squash those two.
Fine to me. Actually long "Synopsys DesignWare I2C adapter" printed bothered me most.
Signature · 1 line
Jarkko
drivers/i2c/busses/i2c-designware-core.c irqreturn_t i2c_dw_isr(int this_irq, void *dev_id) · line 780
Quoted 1 line
drivers/i2c/busses/i2c-designware-core.c +1
-0+ dev_dbg(dev->dev, "%s: %s enabled=%#x stat=%#x\n", __func__,
What about the double space between the %s?