[PATCH] Add missing '\n' to printk in ACPI code

From: Luca Tettamanti
Date: Sat Jul 08 2006 - 15:22:49 EST


Hi,
I found out that a printk() in ACPI code is missing the newline; the
next kernel message is then appended on the same line (and priority is
not stripped), eg:

Device `[FAN0]' is not power manageable<6>ACPI: Fan [FAN0] (on)

This trivial patch (against 2.6.18-rc1) fixes it.

Signed-Off-By: Luca Tettamanti <kronos.it@xxxxxxxxx>

--- a/drivers/acpi/bus.c 2006-07-08 15:12:32.855837715 +0200
+++ b/drivers/acpi/bus.c 2006-07-08 15:12:46.848712215 +0200
@@ -192,7 +192,7 @@
/* Make sure this is a valid target state */

if (!device->flags.power_manageable) {
- printk(KERN_DEBUG "Device `[%s]' is not power manageable",
+ printk(KERN_DEBUG "Device `[%s]' is not power manageable\n",
device->kobj.name);
return -ENODEV;
}



Luca
--
Home: http://kronoz.cjb.net
Il piu` bel momento dell'amore e` quando ci si illude che duri per
sempre; il piu` brutto, quando ci si accorge che dura da troppo.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/