mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
thermal: use %d to print S32 parameters
Power allocator's parameters are S32 type, so use %d to print them. Acked-by: Javi Merino <javi.merino@arm.com> Signed-off-by: Leo Yan <leo.yan@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
This commit is contained in:
parent
5fdfc48bb0
commit
15333e3af1
1 changed files with 1 additions and 1 deletions
|
@ -959,7 +959,7 @@ static DEVICE_ATTR(sustainable_power, S_IWUSR | S_IRUGO, sustainable_power_show,
|
||||||
struct thermal_zone_device *tz = to_thermal_zone(dev); \
|
struct thermal_zone_device *tz = to_thermal_zone(dev); \
|
||||||
\
|
\
|
||||||
if (tz->tzp) \
|
if (tz->tzp) \
|
||||||
return sprintf(buf, "%u\n", tz->tzp->name); \
|
return sprintf(buf, "%d\n", tz->tzp->name); \
|
||||||
else \
|
else \
|
||||||
return -EIO; \
|
return -EIO; \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue