From patchwork Sun Jun 28 20:03:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frans Pop X-Patchwork-Id: 32846 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 n5SK3xZf031670 for ; Sun, 28 Jun 2009 20:04:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751519AbZF1UDz (ORCPT ); Sun, 28 Jun 2009 16:03:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752127AbZF1UDy (ORCPT ); Sun, 28 Jun 2009 16:03:54 -0400 Received: from Cpsmtpm-eml106.kpnxchange.com ([195.121.3.10]:58279 "EHLO CPSMTPM-EML106.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbZF1UDy (ORCPT ); Sun, 28 Jun 2009 16:03:54 -0400 Received: from aragorn.fjphome.nl ([84.85.147.182]) by CPSMTPM-EML106.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Sun, 28 Jun 2009 22:03:56 +0200 From: Frans Pop To: linux-acpi@vger.kernel.org Subject: [PATCH] acpi processor: simplify needlessly complex printk Date: Sun, 28 Jun 2009 22:03:54 +0200 User-Agent: KMail/1.9.9 Cc: linux-kernel@vger.kernel.org, Len Brown MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200906282203.55643.elendil@planet.nl> X-OriginalArrivalTime: 28 Jun 2009 20:03:56.0382 (UTC) FILETIME=[916BE7E0:01C9F82B] Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Why use three printk statements if one will do? Signed-off-by: Frans Pop --- 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_core.c b/drivers/acpi/processor_core.c index 84e0f3c..b8fb74a 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -772,12 +772,11 @@ static int __cpuinit acpi_processor_start(struct acpi_device *device) if (result) printk(KERN_ERR PREFIX "Create sysfs link\n"); - if (pr->flags.throttling) { - printk(KERN_INFO PREFIX "%s [%s] (supports", - acpi_device_name(device), acpi_device_bid(device)); - printk(" %d throttling states", pr->throttling.state_count); - printk(")\n"); - } + if (pr->flags.throttling) + printk(KERN_INFO PREFIX + "%s [%s] (supports %d throttling states)\n", + acpi_device_name(device), acpi_device_bid(device), + pr->throttling.state_count); end: