From patchwork Fri May 22 08:23:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Pop X-Patchwork-Id: 25366 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4M8OCSW023667 for ; Fri, 22 May 2009 08:24:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757098AbZEVIXo (ORCPT ); Fri, 22 May 2009 04:23:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756884AbZEVIXo (ORCPT ); Fri, 22 May 2009 04:23:44 -0400 Received: from cpsmtpm-eml101.kpnxchange.com ([195.121.3.5]:59335 "EHLO CPSMTPM-EML101.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757221AbZEVIXl (ORCPT ); Fri, 22 May 2009 04:23:41 -0400 Received: from aragorn.fjphome.nl ([84.85.147.182]) by CPSMTPM-EML101.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Fri, 22 May 2009 10:23:42 +0200 From: Frans Pop To: linux-acpi@vger.kernel.org Subject: [PATCH] ACPI processor: remove spurious newline from warning message Date: Fri, 22 May 2009 10:23:40 +0200 User-Agent: KMail/1.9.9 Cc: linux-kernel@vger.kernel.org, Zhang Rui , Len Brown MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200905221023.41843.elendil@planet.nl> X-OriginalArrivalTime: 22 May 2009 08:23:42.0341 (UTC) FILETIME=[9DD14350:01C9DAB6] Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org 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 Cc: Zhang Rui Cc: Len Brown --- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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)