cpufreq: Improve debug prints
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 22 Oct 2012 23:29:03 +0000 (01:29 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:33:06 +0000 (00:33 +0100)
With debug options on, it is difficult to locate cpufreq core's debug prints.
Fix this by prefixing debug prints with KBUILD_MODNAME.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq_performance.c
drivers/cpufreq/cpufreq_powersave.c
drivers/cpufreq/cpufreq_userspace.c
drivers/cpufreq/freq_table.c

index db6e337ad3379d9ce1b8868fd5a1bc2e6ae063e2..85df5387bc61f2c1b5ff15e9807b8d0484421e72 100644 (file)
@@ -15,6 +15,8 @@
  *
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
index f13a8a9af6a130d999a3794588218ee652d5f076..ceee06849b9167bb63e423f2aee29ecba3751f57 100644 (file)
@@ -10,6 +10,8 @@
  *
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/cpufreq.h>
index 4c2eb512f2bc3a3da1921ffc4c3ebca61908cd19..2d948a1711551de4b1ad95b6fd5bbc455bccab36 100644 (file)
@@ -10,6 +10,8 @@
  *
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/cpufreq.h>
index bedac1aa9be31919f74ea6e3788d47e64f1e3342..c8c3d293cc57239c1f7d1965000a64c183204de1 100644 (file)
@@ -11,6 +11,8 @@
  *
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/smp.h>
index 90431cb92804b5cb166c231acd709093cfcf6ff6..49cda256efb2149c2311e588d9cdb151f87dc103 100644 (file)
@@ -9,6 +9,8 @@
  *
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>