diff options
author | Leo Yan <leo.yan@linaro.org> | 2016-03-29 19:24:15 +0800 |
---|---|---|
committer | Huang, Tao <huangtao@rock-chips.com> | 2016-05-13 10:33:16 +0800 |
commit | 33d117f2af7b9a74e08cf29a31470dc0be72a6b3 (patch) | |
tree | c8ef15cb6540482323a25e061dce21a2f77c153b /drivers/thermal/thermal_core.c | |
parent | acb72fede655d6024631bc9a2a6ef1b8fca7eed0 (diff) |
UPSTREAM: thermal: use %d to print S32 parameters
Power allocator's parameters are S32 type, so use %d to print them.
Change-Id: Iae45ef17e4375320a0f4b2fdeab034ae76763ff6
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>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry picked from commit 15333e3af1de37b1b214b28c85fe9a7b257fb92c)
Diffstat (limited to 'drivers/thermal/thermal_core.c')
-rw-r--r-- | drivers/thermal/thermal_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index b86a2b36c924..05c66b796b20 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -1000,7 +1000,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; \ } \ |