diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-10-17 09:45:18 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-11-02 01:47:43 +0100 |
commit | d6d2a5289a530a3020703e6a3b19a14668601c27 (patch) | |
tree | 3ae851efd5b24c09e1ca071e74fff44a07273d50 /drivers/base | |
parent | a6eed752f5fb40990eb28fddb2b93258fb7e3be0 (diff) | |
download | linux-stable-d6d2a5289a530a3020703e6a3b19a14668601c27.tar.gz linux-stable-d6d2a5289a530a3020703e6a3b19a14668601c27.tar.bz2 linux-stable-d6d2a5289a530a3020703e6a3b19a14668601c27.zip |
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>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/opp/core.c | 2 | ||||
-rw-r--r-- | drivers/base/power/opp/cpu.c | 3 |
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 @@ * 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 7654c5606307..c27a1cdffec9 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> |