Skip to content

Commit

Permalink
thermal: use %d to print S32 parameters
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Leo Yan authored and Eduardo Valentin committed Apr 27, 2016
1 parent 5fdfc48 commit 15333e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/thermal_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
\
if (tz->tzp) \
return sprintf(buf, "%u\n", tz->tzp->name); \
return sprintf(buf, "%d\n", tz->tzp->name); \
else \
return -EIO; \
} \
Expand Down

0 comments on commit 15333e3

Please sign in to comment.