From: Leo Yan <leo.yan@linaro.org>
Date: Tue, 29 Mar 2016 11:24:15 +0000 (+0800)
Subject: thermal: use %d to print S32 parameters
X-Git-Tag: v4.6-rc6~1^2
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=15333e3af1de37b1b214b28c85fe9a7b257fb92c;p=users%2Fjedix%2Flinux-maple.git

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>
---

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;						\
 	}								\