diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-07-27 08:28:06 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-09-07 17:52:28 -0400 |
commit | 63431f789c957cebcffeb51953dfaeb7f1ddd827 (patch) | |
tree | 496fe5d7cc79202828a9a01296b4125e74c0ec2d | |
parent | d075a88e515278b3e2d5ec39e80e6fd3c6e48841 (diff) |
cpufreq: Use __func__ to print function's name
Its better to use __func__ to print functions name instead of writing
the name in the print statement. This also has the advantage that a
change in function's name doesn't force us to change the print message
as well.
Reviewed-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index feb6dc51efa7..8b6bf38b2497 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c | |||
@@ -2033,8 +2033,7 @@ static int __cpufreq_governor(struct cpufreq_policy *policy, | |||
2033 | if (!try_module_get(policy->governor->owner)) | 2033 | if (!try_module_get(policy->governor->owner)) |
2034 | return -EINVAL; | 2034 | return -EINVAL; |
2035 | 2035 | ||
2036 | pr_debug("__cpufreq_governor for CPU %u, event %u\n", | 2036 | pr_debug("%s: for CPU %u, event %u\n", __func__, policy->cpu, event); |
2037 | policy->cpu, event); | ||
2038 | 2037 | ||
2039 | mutex_lock(&cpufreq_governor_lock); | 2038 | mutex_lock(&cpufreq_governor_lock); |
2040 | if ((policy->governor_enabled && event == CPUFREQ_GOV_START) | 2039 | if ((policy->governor_enabled && event == CPUFREQ_GOV_START) |