]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
thermal: cpu_cooling: Clarify error message
authorAmit Kucheria <amit.kucheria@linaro.org>
Mon, 21 Jan 2019 09:42:23 +0000 (15:12 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 5 Feb 2019 23:50:13 +0000 (15:50 -0800)
Make it clear that it is a failure if the cpufreq driver was unable to
register as a cooling device. Makes it easier to find in logs and
grepping for words like fail, err, warn.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c

index dfd23245f778a3193903d582e015bd27a7f50ad3..6fff16113628743ae9a6b006799fb376abb39198 100644 (file)
@@ -774,7 +774,7 @@ of_cpufreq_cooling_register(struct cpufreq_policy *policy)
 
                cdev = __cpufreq_cooling_register(np, policy, capacitance);
                if (IS_ERR(cdev)) {
-                       pr_err("cpu_cooling: cpu%d is not running as cooling device: %ld\n",
+                       pr_err("cpu_cooling: cpu%d failed to register as cooling device: %ld\n",
                               policy->cpu, PTR_ERR(cdev));
                        cdev = NULL;
                }