From: Viresh Kumar Date: Mon, 27 Jul 2015 12:28:06 +0000 (+0530) Subject: cpufreq: Use __func__ to print function's name X-Git-Tag: v4.14-rc1~4690^2~1^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63431f789c957cebcffeb51953dfaeb7f1ddd827;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index feb6dc5..8b6bf38 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2033,8 +2033,7 @@ static int __cpufreq_governor(struct cpufreq_policy *policy, if (!try_module_get(policy->governor->owner)) return -EINVAL; - pr_debug("__cpufreq_governor for CPU %u, event %u\n", - policy->cpu, event); + pr_debug("%s: for CPU %u, event %u\n", __func__, policy->cpu, event); mutex_lock(&cpufreq_governor_lock); if ((policy->governor_enabled && event == CPUFREQ_GOV_START)