summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2016-03-29 19:24:15 +0800
committerEduardo Valentin <edubezval@gmail.com>2016-04-27 15:54:51 -0700
commit15333e3af1de37b1b214b28c85fe9a7b257fb92c (patch)
tree3f80a6dd1491c17bba8a61900deb760a4ff8a72e /drivers/thermal
parent5fdfc48bb0da2aa8a912024a6ecca06486eb9141 (diff)
downloadlinux-15333e3af1de37b1b214b28c85fe9a7b257fb92c.tar.gz
linux-15333e3af1de37b1b214b28c85fe9a7b257fb92c.tar.xz
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>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/thermal_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index f1db49625555..5133cd1e10b7 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -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; \
} \