Message ID | 20150305104815.GA2865@e104805 (mailing list archive) |
---|---|
State | Rejected, archived |
Delegated to: | Eduardo Valentin |
Headers | show |
--- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -461,8 +461,8 @@ static int get_static_power(struct cpufreq_cooling_device *cpufreq_device, if (voltage == 0) { dev_warn_ratelimited(cpufreq_device->cpu_dev, - "Failed to get voltage for frequency %lu: %ld\n", - freq_hz, IS_ERR(opp) ? PTR_ERR(opp) : 0); + "Failed to get voltage for frequency %lu: %d\n", + freq_hz, PTR_ERR_OR_ZERO(opp)); return -EINVAL; }