aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-10-17 00:15:18 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-11-01 19:47:43 -0500
commitd6d2a5289a530a3020703e6a3b19a14668601c27 (patch)
tree3ae851efd5b24c09e1ca071e74fff44a07273d50
parenta6eed752f5fb40990eb28fddb2b93258fb7e3be0 (diff)
PM / OPP: Improve print messages with pr_fmt
To identify OPP core's print messages easily, prefix them with KBUILD_MODNAME. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/base/power/opp/core.c2
-rw-r--r--drivers/base/power/opp/cpu.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/base/power/opp/core.c b/drivers/base/power/opp/core.c
index a731fa66e504..60ae6f029499 100644
--- a/drivers/base/power/opp/core.c
+++ b/drivers/base/power/opp/core.c
@@ -11,6 +11,8 @@
11 * published by the Free Software Foundation. 11 * published by the Free Software Foundation.
12 */ 12 */
13 13
14#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
15
14#include <linux/errno.h> 16#include <linux/errno.h>
15#include <linux/err.h> 17#include <linux/err.h>
16#include <linux/slab.h> 18#include <linux/slab.h>
diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c
index 7654c5606307..c27a1cdffec9 100644
--- a/drivers/base/power/opp/cpu.c
+++ b/drivers/base/power/opp/cpu.c
@@ -10,6 +10,9 @@
10 * it under the terms of the GNU General Public License version 2 as 10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation. 11 * published by the Free Software Foundation.
12 */ 12 */
13
14#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
15
13#include <linux/cpu.h> 16#include <linux/cpu.h>
14#include <linux/cpufreq.h> 17#include <linux/cpufreq.h>
15#include <linux/err.h> 18#include <linux/err.h>