Skip to content
Snippets Groups Projects
Commit 15333e3a authored by Leo Yan's avatar Leo Yan Committed by Eduardo Valentin
Browse files

thermal: use %d to print S32 parameters


Power allocator's parameters are S32 type, so use %d to print them.

Acked-by: default avatarJavi Merino <javi.merino@arm.com>
Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 5fdfc48b
No related branches found
No related tags found
No related merge requests found
......@@ -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; \
} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment