Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754194AbcCWLeN (ORCPT ); Wed, 23 Mar 2016 07:34:13 -0400 Received: from terminus.zytor.com ([198.137.202.10]:51354 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751611AbcCWLeJ (ORCPT ); Wed, 23 Mar 2016 07:34:09 -0400 Date: Wed, 23 Mar 2016 04:33:43 -0700 From: tip-bot for Vladimir Zapolskiy Message-ID: Cc: mingo@kernel.org, daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, vz@mleia.com, hpa@zytor.com, jszhang@marvell.com, ezequiel.garcia@imgtec.com, tglx@linutronix.de Reply-To: daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, mingo@kernel.org, ezequiel.garcia@imgtec.com, jszhang@marvell.com, tglx@linutronix.de, hpa@zytor.com, vz@mleia.com In-Reply-To: <1458603727-4446-1-git-send-email-vz@mleia.com> References: <1458603727-4446-1-git-send-email-vz@mleia.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/urgent] clocksource/drivers/pistachio: Correct output format of PTR_ERR() Git-Commit-ID: b7c8b4aac6ea6746b1c49fda0a0563a07203dd26 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1778 Lines: 45 Commit-ID: b7c8b4aac6ea6746b1c49fda0a0563a07203dd26 Gitweb: http://git.kernel.org/tip/b7c8b4aac6ea6746b1c49fda0a0563a07203dd26 Author: Vladimir Zapolskiy AuthorDate: Tue, 22 Mar 2016 01:42:07 +0200 Committer: Thomas Gleixner CommitDate: Wed, 23 Mar 2016 12:30:40 +0100 clocksource/drivers/pistachio: Correct output format of PTR_ERR() Use signed integer output in the pr_err() string format, here PTR_ERR() value is negative and it should be reported in human readable way. Signed-off-by: Vladimir Zapolskiy Cc: Jisheng Zhang Cc: Ezequiel Garcia Cc: Daniel Lezcano Link: http://lkml.kernel.org/r/1458603727-4446-1-git-send-email-vz@mleia.com Signed-off-by: Thomas Gleixner --- drivers/clocksource/time-pistachio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/time-pistachio.c b/drivers/clocksource/time-pistachio.c index 3269d9e..376e59b 100644 --- a/drivers/clocksource/time-pistachio.c +++ b/drivers/clocksource/time-pistachio.c @@ -163,7 +163,7 @@ static void __init pistachio_clksrc_of_init(struct device_node *node) periph_regs = syscon_regmap_lookup_by_phandle(node, "img,cr-periph"); if (IS_ERR(periph_regs)) { - pr_err("cannot get peripheral regmap (%lu)\n", + pr_err("cannot get peripheral regmap (%ld)\n", PTR_ERR(periph_regs)); return; } @@ -176,7 +176,7 @@ static void __init pistachio_clksrc_of_init(struct device_node *node) sys_clk = of_clk_get_by_name(node, "sys"); if (IS_ERR(sys_clk)) { - pr_err("clock get failed (%lu)\n", PTR_ERR(sys_clk)); + pr_err("clock get failed (%ld)\n", PTR_ERR(sys_clk)); return; }