* [PATCH 1/2] i2c: designware: Remove space between variable and its value in debug print
@ 2015-08-07 10:43 Jarkko Nikula
[not found] ` <1438944208-16276-1-git-send-email-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Jarkko Nikula @ 2015-08-07 10:43 UTC (permalink / raw)
To: Wolfram Sang; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, Jarkko Nikula
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.
Signed-off-by: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
drivers/i2c/busses/i2c-designware-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-designware-core.c b/drivers/i2c/busses/i2c-designware-core.c
index 6f19a33773fe..7310051d4a50 100644
--- a/drivers/i2c/busses/i2c-designware-core.c
+++ b/drivers/i2c/busses/i2c-designware-core.c
@@ -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;
--
2.4.6
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] i2c: designware: Remove adapter name from debug print in i2c_dw_isr()
[not found] ` <1438944208-16276-1-git-send-email-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
@ 2015-08-07 10:43 ` Jarkko Nikula
[not found] ` <1438944208-16276-2-git-send-email-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-08-07 11:08 ` [PATCH 1/2] i2c: designware: Remove space between variable and its value in debug print Wolfram Sang
1 sibling, 1 reply; 5+ messages in thread
From: Jarkko Nikula @ 2015-08-07 10:43 UTC (permalink / raw)
To: Wolfram Sang; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA, 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.
Signed-off-by: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
drivers/i2c/busses/i2c-designware-core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/busses/i2c-designware-core.c b/drivers/i2c/busses/i2c-designware-core.c
index 7310051d4a50..cc98b2a75591 100644
--- a/drivers/i2c/busses/i2c-designware-core.c
+++ b/drivers/i2c/busses/i2c-designware-core.c
@@ -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;
--
2.4.6
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] i2c: designware: Remove space between variable and its value in debug print
[not found] ` <1438944208-16276-1-git-send-email-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-08-07 10:43 ` [PATCH 2/2] i2c: designware: Remove adapter name from debug print in i2c_dw_isr() Jarkko Nikula
@ 2015-08-07 11:08 ` Wolfram Sang
1 sibling, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2015-08-07 11:08 UTC (permalink / raw)
To: Jarkko Nikula; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 112 bytes --]
> + dev_dbg(dev->dev, "%s: %s enabled=%#x stat=%#x\n", __func__,
What about the double space between the %s?
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] i2c: designware: Remove adapter name from debug print in i2c_dw_isr()
[not found] ` <1438944208-16276-2-git-send-email-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
@ 2015-08-07 11:10 ` Wolfram Sang
2015-08-07 11:17 ` Jarkko Nikula
0 siblings, 1 reply; 5+ messages in thread
From: Wolfram Sang @ 2015-08-07 11:10 UTC (permalink / raw)
To: Jarkko Nikula; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 407 bytes --]
On Fri, Aug 07, 2015 at 01:43:28PM +0300, Jarkko Nikula wrote:
> 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.
>
> Signed-off-by: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
So much about the double space :) I think I'll squash those two.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] i2c: designware: Remove adapter name from debug print in i2c_dw_isr()
2015-08-07 11:10 ` Wolfram Sang
@ 2015-08-07 11:17 ` Jarkko Nikula
0 siblings, 0 replies; 5+ messages in thread
From: Jarkko Nikula @ 2015-08-07 11:17 UTC (permalink / raw)
To: Wolfram Sang; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA
On 07.08.2015 14:10, Wolfram Sang wrote:
> On Fri, Aug 07, 2015 at 01:43:28PM +0300, Jarkko Nikula wrote:
>> 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.
>>
>> Signed-off-by: Jarkko Nikula <jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
>
> 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.
--
Jarkko
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-08-07 11:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-07 10:43 [PATCH 1/2] i2c: designware: Remove space between variable and its value in debug print Jarkko Nikula
[not found] ` <1438944208-16276-1-git-send-email-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-08-07 10:43 ` [PATCH 2/2] i2c: designware: Remove adapter name from debug print in i2c_dw_isr() Jarkko Nikula
[not found] ` <1438944208-16276-2-git-send-email-jarkko.nikula-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-08-07 11:10 ` Wolfram Sang
2015-08-07 11:17 ` Jarkko Nikula
2015-08-07 11:08 ` [PATCH 1/2] i2c: designware: Remove space between variable and its value in debug print Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).