Skip to content

Commit 15333e3

Browse files
Leo YanEduardo Valentin
authored andcommitted
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>
1 parent 5fdfc48 commit 15333e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/thermal_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ static DEVICE_ATTR(sustainable_power, S_IWUSR | S_IRUGO, sustainable_power_show,
959959
struct thermal_zone_device *tz = to_thermal_zone(dev); \
960960
\
961961
if (tz->tzp) \
962-
return sprintf(buf, "%u\n", tz->tzp->name); \
962+
return sprintf(buf, "%d\n", tz->tzp->name); \
963963
else \
964964
return -EIO; \
965965
} \

0 commit comments

Comments
 (0)