lkml.org 
[lkml]   [2004]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.4] I2C updates for 2.4.28 (5/5)
Original report and discussion:
http://archives.andrew.net.au/lm-sensors/msg28295.html

Bottom line:
Some debug messages in the i2c-core lack their trailing newline, which
breaks the logs.

Signed-off-by: Jean Delvare <khali@linux-fr.org>

diff -ruN linux-2.4.28-rc2/drivers/i2c.orig/i2c-core.c linux-2.4.28-rc2/drivers/i2c/i2c-core.c
--- linux-2.4.28-rc2/drivers/i2c.orig/i2c-core.c 2004-11-09 22:02:16.000000000 +0100
+++ linux-2.4.28-rc2/drivers/i2c/i2c-core.c 2004-11-09 22:04:41.000000000 +0100
@@ -901,7 +901,7 @@
if (addr == address_data->normal_i2c[i]) {
found = 1;
DEB2(printk(KERN_DEBUG "i2c-core.o: found normal i2c entry for adapter %d, "
- "addr %02x", adap_id,addr));
+ "addr %02x\n", adap_id, addr));
}
}

diff -ruN linux-2.4.28-rc2/drivers/i2c.orig/i2c-proc.c linux-2.4.28-rc2/drivers/i2c/i2c-proc.c
--- linux-2.4.28-rc2/drivers/i2c.orig/i2c-proc.c 2004-11-09 22:02:09.000000000 +0100
+++ linux-2.4.28-rc2/drivers/i2c/i2c-proc.c 2004-11-09 22:03:59.000000000 +0100
@@ -762,7 +762,7 @@
#ifdef DEBUG
printk
(KERN_DEBUG "i2c-proc.o: found normal isa_range entry for adapter %d, "
- "addr %04x", adapter_id, addr);
+ "addr %04x\n", adapter_id, addr);
#endif
found = 1;
}
@@ -776,7 +776,7 @@
#ifdef DEBUG
printk
(KERN_DEBUG "i2c-proc.o: found normal i2c entry for adapter %d, "
- "addr %02x", adapter_id, addr);
+ "addr %02x\n", adapter_id, addr);
#endif
}
}
--
Jean Delvare
http://khali.linux-fr.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.040 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site