diff options
author | Leo Yan <leo.yan@linaro.org> | 2016-03-29 14:24:15 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2016-04-28 01:54:51 +0300 |
commit | 15333e3af1de37b1b214b28c85fe9a7b257fb92c (patch) | |
tree | 3f80a6dd1491c17bba8a61900deb760a4ff8a72e /drivers/thermal/thermal_core.c | |
parent | 5fdfc48bb0da2aa8a912024a6ecca06486eb9141 (diff) | |
download | 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/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 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; \ } \ |