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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux