From patchwork Mon Feb 5 11:11:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Onkarnarth X-Patchwork-Id: 13545305 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8838199BC for ; Mon, 5 Feb 2024 11:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.25 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707133305; cv=none; b=dUmCc/3Uprh/YYYPwqNYDSmsUFDno0Vjoz+YaXa+/KmiMFT+LRbpzy/We0np+wRvw5fZKYekcz1wwkVsIdJzCsjyLzHZM89bBVMfBjp9eX6fYSt71jtkFA9m158vWYsqjTxRsd2iLNTrOy8Vt/pQe65dy6/MHsqGdcdym4zeVlQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707133305; c=relaxed/simple; bh=HZ0nvGaBN5Wk8A4XWPCkZFffRcIQnmcMCoXMFKcitgE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=S74hS3jfDAIQfVnIzUcc8FZ+6bakgx4qzNtvq2bC1Kk8ng+rfqkCRBcFRCeQ5CoOuwysRleeXyLhri1rEbu+a+WXqLOtzJBQzkd2WVY397ZkYkpj9O+gIdN4tuttjcOUtuQZvezIHbcjBv90ulqxCQl+V5hwFRWxeZM8ZvJ/254= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=hUONy5p/; arc=none smtp.client-ip=203.254.224.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="hUONy5p/" Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20240205114139epoutp0256594cdf3feda0cc49dafbf02a346a3c~w9LDuuwhs0738207382epoutp02E for ; Mon, 5 Feb 2024 11:41:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20240205114139epoutp0256594cdf3feda0cc49dafbf02a346a3c~w9LDuuwhs0738207382epoutp02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707133299; bh=EOGLXpG9HMEKocHPZBogLBBCsSl2pNgppt6+gMxaTpU=; h=From:To:Cc:Subject:Date:References:From; b=hUONy5p/n5cO3CZKPUNfxh4B3VSAnVKPCRHe6JbMqFW+KYmVmoL+RCClGCd+pfv3n yIF5mwJnpoAGa9kE9B8PMvdi9M8lotcHA1ETnHkKYew15bU46vbemeYenkbbvd0dRR HWnhsRBcURbA9kahftdLgcQfdpX9YkxfBUJnSYN0= Received: from epsmges5p1new.samsung.com (unknown [182.195.42.73]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20240205114138epcas5p2ad8001def351e326ca13516349412c4d~w9LC8gp0K2986229862epcas5p2_; Mon, 5 Feb 2024 11:41:38 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 67.6E.09634.279C0C56; Mon, 5 Feb 2024 20:41:38 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20240205111208epcas5p4775d540854dd8778388065a574b7862b~w8xSX8cPM3247232472epcas5p4L; Mon, 5 Feb 2024 11:12:08 +0000 (GMT) Received: from epsmgmc1p1new.samsung.com (unknown [182.195.42.40]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240205111208epsmtrp2795d08284788a0322be86253dec2151a~w8xSXIiRI2233822338epsmtrp2T; Mon, 5 Feb 2024 11:12:08 +0000 (GMT) X-AuditID: b6c32a49-159fd700000025a2-b7-65c0c9721711 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgmc1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C3.97.07368.882C0C56; Mon, 5 Feb 2024 20:12:08 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240205111206epsmtip2b4840220644a39cb4b591bc7a2ff1469~w8xQspkMX3117131171epsmtip2K; Mon, 5 Feb 2024 11:12:06 +0000 (GMT) From: Onkarnarth To: paulburton@kernel.org, mturquette@baylibre.com, sboyd@kernel.org Cc: linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, r.thapliyal@samsung.com, Onkarnath , Maninder singh Subject: [PATCH 1/1] clk: imgtec: use %pe for better readability of errors while printing Date: Mon, 5 Feb 2024 16:41:55 +0530 Message-Id: <20240205111155.3939125-1-onkarnath.1@samsung.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupileLIzCtJLcpLzFFi42LZdlhTS7fo5IFUg3VNahYfe+6xWlzeNYfN onPTVkaLw/PbWCwunnK1WNHzgdWi49tcFouN97It/l3byOLA6fH+Riu7x6ZVnWwefVtWMXp8 3iQXwBLFZZOSmpNZllqkb5fAlfF6SS9rwX3uihtb1rM0MD7g7GLk4JAQMJFY2h/TxcjFISSw m1Fiau8TFgjnE6PE3s4nrBDON6DMm+/MXYycYB27XvyHqtrLKPHn1U+oqi+MEtsXf2UFqWIT 0JKYcecAE4gt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wSrQumMIMk2AS0JGbcOcAEYosIeEjsOvKG GaSIWeAko8SdRbdYQBLCApESc7c0gzWwCKhKzDrbCDaVV8BOYtGar4wQG+QlZl76DhUXlDg5 8wlYLzNQvHnrbOYJjHyzkKRmIUktYGRaxSiZWlCcm56bbFhgmJdarlecmFtcmpeul5yfu4kR HK5aGjsY783/p3eIkYmD8RCjBAezkgiv2Y4DqUK8KYmVValF+fFFpTmpxYcYpTlYlMR5DWfM ThESSE8sSc1OTS1ILYLJMnFwSjUwJes9t+1luXfhxTLnZXMeVcku8Y0Jv/LlRtkOljcfTZZJ SWUKiXud+HCRaeKLBG/HgwmdK1ds6lp/iXP36rq1TLvSQ41C5vyO678T8XDmua9Bd6V+8Mtd ZTmVmySyM9J+Bl/zzLSSsMbVb1bufl52P3xTgWFSCKfk+ktMV+4GHE0usVz/4TFX4P7VFpu1 jXuZvBtT513doD/Bc9PkopxZfir3vtmo7t7DurnjwNQ93yv0Hh1/vvjfuqsFyytfvOPQXOD3 TrVSV+6694Klqey6Wyv4tDkWp//Z1CAfsshn7urlG+Ps+e94Luo+mb1NvWWazedjy4xKQkJL NWz2SOq+vM/ytTooWzvJY+HKBSfPrlBiKc5INNRiLipOBADdWwUnxgIAAA== X-CMS-MailID: 20240205111208epcas5p4775d540854dd8778388065a574b7862b X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240205111208epcas5p4775d540854dd8778388065a574b7862b References: From: Onkarnath instead of printing errros as a number(%ld), it's better to print in string format for better readability of logs Signed-off-by: Maninder singh Signed-off-by: Onkarnath --- drivers/clk/imgtec/clk-boston.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imgtec/clk-boston.c b/drivers/clk/imgtec/clk-boston.c index b00cbd045af5..db96f8bea630 100644 --- a/drivers/clk/imgtec/clk-boston.c +++ b/drivers/clk/imgtec/clk-boston.c @@ -67,21 +67,21 @@ static void __init clk_boston_setup(struct device_node *np) hw = clk_hw_register_fixed_rate(NULL, "input", NULL, 0, in_freq); if (IS_ERR(hw)) { - pr_err("failed to register input clock: %ld\n", PTR_ERR(hw)); + pr_err("failed to register input clock: %pe\n", hw); goto fail_input; } onecell->hws[BOSTON_CLK_INPUT] = hw; hw = clk_hw_register_fixed_rate(NULL, "sys", "input", 0, sys_freq); if (IS_ERR(hw)) { - pr_err("failed to register sys clock: %ld\n", PTR_ERR(hw)); + pr_err("failed to register sys clock: %pe\n", hw); goto fail_sys; } onecell->hws[BOSTON_CLK_SYS] = hw; hw = clk_hw_register_fixed_rate(NULL, "cpu", "input", 0, cpu_freq); if (IS_ERR(hw)) { - pr_err("failed to register cpu clock: %ld\n", PTR_ERR(hw)); + pr_err("failed to register cpu clock: %pe\n", hw); goto fail_cpu; } onecell->hws[BOSTON_CLK_CPU] = hw;