i2c: designware: Make debug print in i2c_dw_isr() shorter
Subsystems (3)
PATCH 1/1 i2c: designware: Make debug print in i2c_dw_isr() shorter
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.
---
This is my previous "[PATCH 1/2] i2c: designware: Remove space between variable and its value in debug print" and "[PATCH 2/2] i2c: designware:
Remove adapter name from debug print in i2c_dw_isr()" squashed.
--- 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= 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 ;
Signature · 1 line
2.4.6
Wolfram Sang
AppliedQuoted 8 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.
While at it remove extra space from "enabled= 0x" and use "%#x" for printing "0x" prefixed hexadecimal values.
Applied to for-next, thanks!