Skip to contentSkip to conversation

Add missing '\n' to printk in ACPI code

PATCH New Luca Tettamanti 1 participant 1 message Jul 8, 2006 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add missing '\n' to printk in ACPI code

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.

drivers/acpi/bus.c +1 -1
@@ -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

Signature · 3 lines
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.