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: 64589 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1948184lbc; Tue, 29 Mar 2016 04:24:39 -0700 (PDT) X-Received: by 10.98.14.67 with SMTP id w64mr2499560pfi.154.1459250679070; Tue, 29 Mar 2016 04:24:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c67si20777862pfj.47.2016.03.29.04.24.38; Tue, 29 Mar 2016 04:24:39 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756838AbcC2LYh (ORCPT + 13 others); 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 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(-) -- 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; \ } \