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: 8023431 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C4435BEEE5 for ; Wed, 13 Jan 2016 08:34:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BDF2920429 for ; Wed, 13 Jan 2016 08:34:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BDD1B20421 for ; Wed, 13 Jan 2016 08:34:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751535AbcAMIe3 (ORCPT ); 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 X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Power allocator's parameters are S32 type, so use %d to print them. Signed-off-by: Leo Yan Acked-by: Javi Merino --- 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; \ } \