projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fdfc48
)
thermal: use %d to print S32 parameters
author
Leo Yan
<leo.yan@linaro.org>
Tue, 29 Mar 2016 11:24:15 +0000
(19:24 +0800)
committer
Eduardo Valentin
<edubezval@gmail.com>
Wed, 27 Apr 2016 22:54:51 +0000
(15:54 -0700)
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>
drivers/thermal/thermal_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/thermal/thermal_core.c
b/drivers/thermal/thermal_core.c
index f1db496255556c53750578ed25fae73779a882de..5133cd1e10b7ae99d838823af2eef272aa00ab76 100644
(file)
--- 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; \
} \