public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report
@ 2009-05-06  7:32 Michael Abbott
  2009-05-06  8:22 ` Jean Delvare
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Abbott @ 2009-05-06  7:32 UTC (permalink / raw)
  To: linux-i2c; +Cc: linux-kernel

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@diamond.ac.uk>
---
 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");
-- 
1.6.1.3


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-05-11 14:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-06  7:32 [PATCH 2.6.29.2] PXA I2C: Define log level for i2c PXA error report Michael Abbott
2009-05-06  8:22 ` Jean Delvare
2009-05-11  6:38   ` Michael Abbott
2009-05-11  8:56     ` Jean Delvare
2009-05-11 10:11     ` 伊泽
2009-05-11 10:31       ` Michael Abbott
2009-05-11 11:28         ` Mark Brown
2009-05-11 12:16           ` Michael Abbott
2009-05-11 12:23             ` Mark Brown
2009-05-11 13:29           ` 伊泽
2009-05-11 14:01             ` Michael Abbott
2009-05-11 14:15               ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox