diff options
| author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-05-18 08:25:28 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-05-18 19:02:52 -0400 |
| commit | 60f05e86cf3e8c5f379fe5ba94634fcec17dd67e (patch) | |
| tree | 120d6f3463ad29db6f7c4c7a9975fe274f7e6c5e /kernel | |
| parent | 3834abb4e64483af7af7500e54c0a5f957a52b1b (diff) | |
cpufreq: schedutil: Improve prints messages with pr_fmt
Prefix print messages with KBUILD_MODNAME, i.e 'cpufreq_schedutil: '.
This helps to keep similar formatting for all the print messages
particular to a file and identify those easily in kernel logs.
Its already done this way for rest of the governors.
Along with that, remove the (now) redundant bits from a print message.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched/cpufreq_schedutil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index 154ae3a51e86..14c4aa25cc45 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c | |||
| @@ -9,6 +9,8 @@ | |||
| 9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
| 13 | |||
| 12 | #include <linux/cpufreq.h> | 14 | #include <linux/cpufreq.h> |
| 13 | #include <linux/module.h> | 15 | #include <linux/module.h> |
| 14 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
| @@ -388,7 +390,7 @@ static int sugov_init(struct cpufreq_policy *policy) | |||
| 388 | mutex_unlock(&global_tunables_lock); | 390 | mutex_unlock(&global_tunables_lock); |
| 389 | 391 | ||
| 390 | sugov_policy_free(sg_policy); | 392 | sugov_policy_free(sg_policy); |
| 391 | pr_err("cpufreq: schedutil governor initialization failed (error %d)\n", ret); | 393 | pr_err("initialization failed (error %d)\n", ret); |
| 392 | return ret; | 394 | return ret; |
| 393 | } | 395 | } |
| 394 | 396 | ||
