Skip to content

Commit bf78f13

Browse files
idlethreadEduardo Valentin
authored andcommitted
thermal: cpu_cooling: Clarify error message
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>
1 parent 3079f34 commit bf78f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/cpu_cooling.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ of_cpufreq_cooling_register(struct cpufreq_policy *policy)
774774

775775
cdev = __cpufreq_cooling_register(np, policy, capacitance);
776776
if (IS_ERR(cdev)) {
777-
pr_err("cpu_cooling: cpu%d is not running as cooling device: %ld\n",
777+
pr_err("cpu_cooling: cpu%d failed to register as cooling device: %ld\n",
778778
policy->cpu, PTR_ERR(cdev));
779779
cdev = NULL;
780780
}

0 commit comments

Comments
 (0)