cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpufreq: Reformat printk() statement
@ 2014-03-06 17:34 Soren Brinkmann
  2014-03-10  3:53 ` Viresh Kumar
  0 siblings, 1 reply; 6+ messages in thread
From: Soren Brinkmann @ 2014-03-06 17:34 UTC (permalink / raw)
  To: Viresh Kumar; +Cc: cpufreq, linux-kernel, linux-pm, Soren Brinkmann

Reformat a printk statement to:
 - use pr_warn
 - bring the whole string into a single line in favor of being able to
   grep for the message (ignoring the 80 char limit)

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
---
 drivers/cpufreq/cpufreq.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index cb003a6b72c8..534c2df608ed 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -1874,11 +1874,8 @@ static int __cpufreq_governor(struct cpufreq_policy *policy,
 		if (!gov)
 			return -EINVAL;
 		else {
-			printk(KERN_WARNING "%s governor failed, too long"
-			       " transition latency of HW, fallback"
-			       " to %s governor\n",
-			       policy->governor->name,
-			       gov->name);
+			pr_warn("%s governor failed, too long transition latency of HW, fallback to %s governor\n",
+					policy->governor->name, gov->name);
 			policy->governor = gov;
 		}
 	}
-- 
1.9.0.1.g4196000


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-10 16:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06 17:34 [PATCH] cpufreq: Reformat printk() statement Soren Brinkmann
2014-03-10  3:53 ` Viresh Kumar
2014-03-10  4:07   ` Joe Perches
2014-03-10  4:15     ` Viresh Kumar
2014-03-10 16:35     ` Sören Brinkmann
2014-03-10 16:49       ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox