summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-10-17 09:45:18 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-11-02 01:47:43 +0100
commitd6d2a5289a530a3020703e6a3b19a14668601c27 (patch)
tree3ae851efd5b24c09e1ca071e74fff44a07273d50
parenta6eed752f5fb40990eb28fddb2b93258fb7e3be0 (diff)
downloadop-kernel-dev-d6d2a5289a530a3020703e6a3b19a14668601c27.zip
op-kernel-dev-d6d2a5289a530a3020703e6a3b19a14668601c27.tar.gz
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 a731fa6..60ae6f0 100644
--- a/drivers/base/power/opp/core.c
+++ b/drivers/base/power/opp/core.c
@@ -11,6 +11,8 @@
* published by the Free Software Foundation.
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/slab.h>
diff --git a/drivers/base/power/opp/cpu.c b/drivers/base/power/opp/cpu.c
index 7654c56..c27a1cd 100644
--- a/drivers/base/power/opp/cpu.c
+++ b/drivers/base/power/opp/cpu.c
@@ -10,6 +10,9 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/cpu.h>
#include <linux/cpufreq.h>
#include <linux/err.h>
OpenPOWER on IntegriCloud