From patchwork Wed Jan 13 08:33:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 59656 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3220314lbb; Wed, 13 Jan 2016 00:34:31 -0800 (PST) X-Received: by 10.66.55.66 with SMTP id q2mr128823170pap.120.1452674071126; Wed, 13 Jan 2016 00:34:31 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 87si472784pfr.142.2016.01.13.00.34.30; Wed, 13 Jan 2016 00:34:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751535AbcAMIe3 (ORCPT + 11 others); Wed, 13 Jan 2016 03:34:29 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:35967 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750856AbcAMIe3 (ORCPT ); Wed, 13 Jan 2016 03:34:29 -0500 Received: by mail-pf0-f172.google.com with SMTP id n128so77671145pfn.3 for ; Wed, 13 Jan 2016 00:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=/k0ylZI9GCSPjQeDhEjbIUt5axhnD5JHXjvl7YhbuzI=; b=dn0PSEa1rumci4SrYEOVjYO+AIWQtUqHm7FtXs8VGFzkfiufI8o9n7N4sNFvRD56ZT jJ+0CrS0ukx0V4FTfGCpDE4OvyyaShjGxHZCCnUVKKN+IOGf1bNT3e8XsoskZeagfsNb UGkNPR7jxbgfPAzg3efabpYXqMx46PrWCDMyc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/k0ylZI9GCSPjQeDhEjbIUt5axhnD5JHXjvl7YhbuzI=; b=lOU/x68PQNUhU4Ijv3h3s8Zu8fFXkn1ZuzbC1ZnWG10FX2CFlyjKzPzUFN5H1on92h U6F9bNw3iashik1TOYWHtdpnACsbZ2Mmh1KCKWNlGI7/FGUc36hr4ISz0x26/qhy07K4 3r5FRpjVE+9oc/EVwK1rcrnbepJTG7NcVNXTrLstXIygiAPZa93j2OUEZQ+mlcZKoOPj +k0CTGBthwUZtOE3VTDADkK00ubjphBrA7C/iBB9Jv0cI1x+XkZgvWjRo9XlLzqiuWNj LqfzCLnMeWmEoLBOdql1PssZbO9LIkX5cKqsUxlILEnYqmfx6pP9RlG/a3AdQB9MCAuS X7IA== X-Gm-Message-State: ALoCoQmKh43jxeErl08cazp8jhraDVsec2w9S3CX2uhuG7Lv6bm9dgeh/eD8sU6RAi89FlVTYo3E9UOwq/mu18XMs5bXI6vcTQ== X-Received: by 10.98.10.87 with SMTP id s84mr41027437pfi.85.1452674068240; Wed, 13 Jan 2016 00:34:28 -0800 (PST) Received: from localhost.localdomain (v17.blockcn.net. [192.241.236.26]) by smtp.gmail.com with ESMTPSA id xv2sm674817pab.10.2016.01.13.00.34.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 00:34:26 -0800 (PST) From: Leo Yan To: Zhang Rui , Eduardo Valentin , Javi Merino , Punit Agrawal , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH] thermal: use %d to print S32 parameters Date: Wed, 13 Jan 2016 16:33:56 +0800 Message-Id: <1452674036-14907-1-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Power allocator's parameters are S32 type, so use %d to print them. Signed-off-by: Leo Yan --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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; \ } \