Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1366175 > unrolled thread

[RESEND PATCH] thermal: use %d to print S32 parameters

Started byLeo Yan <leo.yan@linaro.org>
First post2016-03-29 13:30 +0200
Last post2016-03-29 13:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [RESEND PATCH] thermal: use %d to print S32 parameters Leo Yan <leo.yan@linaro.org> - 2016-03-29 13:30 +0200

#1366175 — [RESEND PATCH] thermal: use %d to print S32 parameters

FromLeo Yan <leo.yan@linaro.org>
Date2016-03-29 13:30 +0200
Subject[RESEND PATCH] thermal: use %d to print S32 parameters
Message-ID<ri00r-5tz-35@gated-at.bofh.it>
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>
---
 drivers/thermal/thermal_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index d9e525c..1335df2 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -931,7 +931,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;						\
 	}								\
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web