From patchwork Tue Mar 29 11:24:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 8685831 X-Patchwork-Delegate: eduardo.valentin@ti.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 1C66AC0553 for ; Tue, 29 Mar 2016 11:24:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4663020272 for ; Tue, 29 Mar 2016 11:24:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F3AA120103 for ; Tue, 29 Mar 2016 11:24:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756838AbcC2LYh (ORCPT ); Tue, 29 Mar 2016 07:24:37 -0400 Received: from mail-vk0-f44.google.com ([209.85.213.44]:36105 "EHLO mail-vk0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756825AbcC2LYg (ORCPT ); Tue, 29 Mar 2016 07:24:36 -0400 Received: by mail-vk0-f44.google.com with SMTP id z68so14077585vkg.3 for ; Tue, 29 Mar 2016 04:24:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=b2BcWQWC5fQHIznQ7EylighBrCS+y0KRX9d9LnazsTQ=; b=jtRkw+5NL7tFZw164NeLwbJuPRu1hAckib5hYgZxndxQ0hIlrzHBPNRwI+qEkPSnc6 GWZ1ypAyz8EElVc4f+N8dzHLI9iAZn/wp8T0U9jz9s1jBJCfsp5Fmkz1tXP/29uwjyho Eeig+zzjdP4CCLicqqQ/rbG3rSu9+5XpKcCzg= 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=b2BcWQWC5fQHIznQ7EylighBrCS+y0KRX9d9LnazsTQ=; b=K8hof2Q6t1kV1cPPyCJE1SKAuVTmPSWg4kxEF+AIwZETcNUEnbRx4Itl4PJ4iPcbZ3 lT45iUH5hMcQLQV97OPMNt+m4eatqtS3sUOGU9I82QhA7rfIAA4wZW1hDiTKuaKPMkP6 OW6AKyLbHH+5JTrc6KPPFGJfqUtneP7kmH9i8jpzjSkk8LfjYqpHnyksCK/FqgYGoSsd 31QwE2bWuvTbh9apfSGbkYruAXiYTY7wJKCfarh480e6P2cxzZUrwCpXtoBqoTOr1Q5p JBQCYISO2EYLOXDUBwT0pNit5TRW9mWXn1c/pLxhi65+kg8cHIH/CrC8BszvY5kC0iFB YA6A== X-Gm-Message-State: AD7BkJLJS/eZtBLU5e4kiQ1l3TOZCsBrCHcLSIo9na5sgilrEvUJYL24CIRF23azE6hVdKaT X-Received: by 10.31.188.142 with SMTP id m136mr832667vkf.89.1459250676026; Tue, 29 Mar 2016 04:24:36 -0700 (PDT) Received: from leoy-linaro.a1.60in.com ([66.155.104.79]) by smtp.gmail.com with ESMTPSA id 69sm1355224uak.14.2016.03.29.04.24.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Mar 2016 04:24:35 -0700 (PDT) From: Leo Yan To: Zhang Rui , Eduardo Valentin Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Leo Yan Subject: [RESEND PATCH] thermal: use %d to print S32 parameters Date: Tue, 29 Mar 2016 19:24:15 +0800 Message-Id: <1459250655-22857-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=-7.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. Acked-by: Javi Merino Signed-off-by: Leo Yan --- 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; \ } \