Skip to contentSkip to conversation

ACPI processor: remove spurious newline from warning message

PATCH Applied Frans Pop 2 participants 2 messages May 22, 2009 – May 27, 2009 ACPI

lore
Share & tools
lore

Frans Pop

author
#0 lore raw

PATCH 1/1 ACPI processor: remove spurious newline from warning message

ACPI processor: remove spurious newline from warning message

Commit 4973b22a ("ACPI processor: reset the throttling state once it's invalid") introduced a new warning which prints a spurious newline.

The ACPI_WARNING macro that is used already takes care of adding a newline, after adding ACPI_CA_VERSION to the message. Remove the newline to avoid the message getting split into two lines.

Cc Zhang Rui <[email protected]>
Cc Len Brown <[email protected]>
drivers/acpi/processor_throttling.c +1 -1
index 7f16f5f..2275437 100644
@@ -840,7 +840,7 @@ static int acpi_processor_get_throttling_ptc(struct acpi_processor *pr)
 		state = acpi_get_throttling_state(pr, value);
 		if (state == -1) {
 			ACPI_WARNING((AE_INFO,
-				"Invalid throttling state, reset\n"));
+				"Invalid throttling state, reset"));
 			state = 0;
 			ret = acpi_processor_set_throttling(pr, state);
 			if (ret)
reviewer Applied
#1 lore raw

applied

thanks,
Len Brown, Intel Open Source Technology Center