* [PATCH] ACPI processor: remove spurious newline from warning message
@ 2009-05-22 8:23 Frans Pop
2009-05-27 5:11 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: Frans Pop @ 2009-05-22 8:23 UTC (permalink / raw)
To: linux-acpi; +Cc: linux-kernel, Zhang Rui, Len Brown
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.
Signed-off-by: Frans Pop <elendil@planet.nl>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Len Brown <len.brown@intel.com>
diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c
index 7f16f5f..2275437 100644
--- a/drivers/acpi/processor_throttling.c
+++ b/drivers/acpi/processor_throttling.c
@@ -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)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ACPI processor: remove spurious newline from warning message
2009-05-22 8:23 [PATCH] ACPI processor: remove spurious newline from warning message Frans Pop
@ 2009-05-27 5:11 ` Len Brown
0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2009-05-27 5:11 UTC (permalink / raw)
To: Frans Pop; +Cc: linux-acpi, linux-kernel, Zhang Rui, Len Brown
applied
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-27 5:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-22 8:23 [PATCH] ACPI processor: remove spurious newline from warning message Frans Pop
2009-05-27 5:11 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).