From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Michael Abbott <michael-W/Bzo8D1sxa8qtKVGud/9w@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
Date: Wed, 6 May 2009 10:22:02 +0200 [thread overview]
Message-ID: <20090506102202.73d6045d@hyperion.delvare> (raw)
In-Reply-To: <Pine.LNX.4.64.0905060829580.24668-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
On Wed, 6 May 2009 08:32:09 +0100 (BST), Michael Abbott wrote:
> All the i2c pxa error messages should probably be KERN_DEBUG
>
> At least, all the printk messages should have a log level specfied,
> and KERN_DEBUG seems appropriate.
>
> Signed-off-by: Michael Abbott <michael.abbott-l+PWtdWbHAs2EctHIo1CcQ@public.gmane.org>
> ---
> drivers/i2c/busses/i2c-pxa.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
> index bdb1f75..8cb9160 100644
> --- a/drivers/i2c/busses/i2c-pxa.c
> +++ b/drivers/i2c/busses/i2c-pxa.c
> @@ -210,11 +210,11 @@ static irqreturn_t i2c_pxa_handler(int this_irq, void *dev_id);
> static void i2c_pxa_scream_blue_murder(struct pxa_i2c *i2c, const char *why)
> {
> unsigned int i;
> - printk("i2c: error: %s\n", why);
> - printk("i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
> + printk(KERN_DEBUG "i2c: error: %s\n", why);
> + printk(KERN_DEBUG "i2c: msg_num: %d msg_idx: %d msg_ptr: %d\n",
> i2c->msg_num, i2c->msg_idx, i2c->msg_ptr);
> - printk("i2c: ICR: %08x ISR: %08x\n"
> - "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
> + printk(KERN_DEBUG "i2c: ICR: %08x ISR: %08x\n"
> + KERN_DEBUG "i2c: log: ", readl(_ICR(i2c)), readl(_ISR(i2c)));
> for (i = 0; i < i2c->irqlogidx; i++)
> printk("[%08x:%08x] ", i2c->isrlog[i], i2c->icrlog[i]);
> printk("\n");
Already fixed in Linus' tree:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=154d22b04ae1741c5fcfd5d747b813a9a279abff#patch4
--
Jean Delvare
next prev parent reply other threads:[~2009-05-06 8:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-06 7:32 [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report Michael Abbott
[not found] ` <Pine.LNX.4.64.0905060829580.24668-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-06 8:22 ` Jean Delvare [this message]
[not found] ` <20090506102202.73d6045d-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-05-11 6:38 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905081102060.14384-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-11 8:56 ` Jean Delvare
2009-05-11 10:11 ` 伊泽
[not found] ` <fd6b62c10905110311w6350828tf90d9c699b73fe30-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-11 10:31 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905111126020.20970-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-11 11:28 ` Mark Brown
[not found] ` <20090511112801.GA20283-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2009-05-11 12:16 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905111314450.30347-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-11 12:23 ` Mark Brown
2009-05-11 13:29 ` 伊泽
[not found] ` <fd6b62c10905110629w6c9a641fr878351fb9217a32e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-11 14:01 ` Michael Abbott
[not found] ` <Pine.LNX.4.64.0905111458290.6308-EMtNTEpPrk39UE2ag0LVtCp2UmYkHbXO@public.gmane.org>
2009-05-11 14:15 ` Wolfram Sang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090506102202.73d6045d@hyperion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=michael-W/Bzo8D1sxa8qtKVGud/9w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).