cpufreq: Use __func__ to print function's name
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 27 Jul 2015 12:28:06 +0000 (17:58 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Sep 2015 21:52:28 +0000 (23:52 +0200)
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>
drivers/cpufreq/cpufreq.c

index feb6dc51efa7e6dee718b20c38685cabf889ddd7..8b6bf38b2497b4ba0ee891cdba10388e79e8aae8 100644 (file)
@@ -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)