lkml.org 
[lkml]   [2009]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] acpi processor: simplify needlessly complex printk
Date
Why use three printk statements if one will do?

Signed-off-by: Frans Pop <elendil@planet.nl>

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:


\
 
 \ /
  Last update: 2009-06-28 22:07    [W:0.200 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site