Skip to contentSkip to conversation

ACPI / power: add missing newline to debug messages

PATCH Applied Mika Westerberg 2 participants 2 messages Jul 5, 2013 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI / power: add missing newline to debug messages

There are few places in power.c where debug messages have no newline at the end. Reading such debug messages from dmesg is not fun so fix this by adding the missing newlines.

---
 drivers/acpi/power.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/power.c +2 -2
index 288bb27..5c28c89 100644
@@ -279,7 +279,7 @@ static int acpi_power_on_unlocked(struct acpi_power_resource *resource)
 
 	if (resource->ref_count++) {
 		ACPI_DEBUG_PRINT((ACPI_DB_INFO,
-				  "Power resource [%s] already on",
+				  "Power resource [%s] already on\n",
 				  resource->name));
 	} else {
 		result = __acpi_power_on(resource);
@@ -325,7 +325,7 @@ static int acpi_power_off_unlocked(struct acpi_power_resource *resource)
 
 	if (!resource->ref_count) {
 		ACPI_DEBUG_PRINT((ACPI_DB_INFO,
-				  "Power resource [%s] already off",
+				  "Power resource [%s] already off\n",
 				  resource->name));
 		return 0;
 	}
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 5 lines · Mika Westerberg

There are few places in power.c where debug messages have no newline at the end. Reading such debug messages from dmesg is not fun so fix this by adding the missing newlines.

Applied, thanks!

Rafael

Quoted 27 lines
---
 drivers/acpi/power.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/acpi/power.c +2 -2
index 288bb27..5c28c89 100644
@@ -279,7 +279,7 @@ static int acpi_power_on_unlocked(struct acpi_power_resource *resource)
 
 	if (resource->ref_count++) {
 		ACPI_DEBUG_PRINT((ACPI_DB_INFO,
-				  "Power resource [%s] already on",
+				  "Power resource [%s] already on\n",
 				  resource->name));
 	} else {
 		result = __acpi_power_on(resource);
@@ -325,7 +325,7 @@ static int acpi_power_off_unlocked(struct acpi_power_resource *resource)
 
 	if (!resource->ref_count) {
 		ACPI_DEBUG_PRINT((ACPI_DB_INFO,
-				  "Power resource [%s] already off",
+				  "Power resource [%s] already off\n",
 				  resource->name));
 		return 0;
 	}
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.