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: Onkarnath X-Patchwork-Id: 196755 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp816057dyb; Mon, 5 Feb 2024 03:42:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYkmJ1y7vXy/ilLVul69xKGufEYb+t3ezemlsvXow+aK0HmSDXlU/0e/SiUL9zr4UE7JpH X-Received: by 2002:a05:6402:1218:b0:560:8f9:5a8a with SMTP id c24-20020a056402121800b0056008f95a8amr3971237edw.42.1707133343316; Mon, 05 Feb 2024 03:42:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707133343; cv=pass; d=google.com; s=arc-20160816; b=QWlK753xRmnk5umMVRuJ3J2VbjgQXvh2ga2N5m9lEqeivvT2eDZYgljpyj7CjJSM9K 4z1/Zr5bmgsWB54ArFaV0BJ/Baj+EhKoUndlINjPql6MOXygPIjZhzA3CTUdD2z3TfFB OWin7FBCKUI+rXupXJ0lrG5VJ/270qWOJj86Re5CPWbPV5lenfUIcVxctMi9r1ODtFzd 2DVdBb+fcjWOvl+GKTuQbDFEVjyXT6bqPvhRUdJnKYPRtJqTwf7QuSblAarAM3tlgClb EH7iFTemuSbR8vHT6wROJpo/XCkoz7mqsX7m+TgUbAdAEgLcv9x10O1yjTv0K9hKo0k1 M0AA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:cms-type:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=EOGLXpG9HMEKocHPZBogLBBCsSl2pNgppt6+gMxaTpU=; fh=3d7mCgnE1QcmopvaanblDmHCzDn7B7a/UPAx9fuU46Y=; b=Tl0KKmy0314Jy+YguuWoypRqJoyJZTpP3+4PbvMsnlBXEEikmf7OcAonyxsnFbbGYQ bbiABLbCH9vF4LM9tqDECPNIuWoKTUNnAF3sLRLvwaE3Pr8C6zg9r+Zc+krJOJCT3DgJ F9GmSep4m3Ow0nANP35N6vThJwgytIHZcMm+ZUlhwHb+eaHTprjy/XWf0/8cHpzMkB68 TnXwmaP1JnPgJCosATB4yaOisu1jPPpgi7QZBHViCbXPtq60Rrtj5sqwBwlG3vO5Eg1V KYBnOIoAEGOrZLcpaoopvRYcrmf2ZWmIlBiTFDF2VGZ7qPhE2StmFI0t84VCFjU8rkXI yQkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="hUONy5p/"; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-52500-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52500-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com X-Forwarded-Encrypted: i=1; AJvYcCW3RNAzFaBN9mhfIi9s89/SwxhtbtaA63uafuDJ89aG8/VGInuWJzL1aQEVX8MG9bF0Kx5nbwkHkFA7DvJvnorVCOSjFg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a33-20020a509ea4000000b005603b0e983csi1890521edf.244.2024.02.05.03.42.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 03:42:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52500-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="hUONy5p/"; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-52500-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52500-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BA6961F228CB for ; Mon, 5 Feb 2024 11:42:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E41A1AADC; Mon, 5 Feb 2024 11:41:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="hUONy5p/" Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (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 BD8A31947D for ; Mon, 5 Feb 2024 11:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707133305; cv=none; b=WSkn4JxLtBmVhb5Zjv5TIQg2puriQUD98yjQsNtkn99MX2mXOJz8HUJFG3E7MdinSxaYHMyCi1zW3n+rDgBg8Q/f3Hu2IlfuJfaPq+3M2RT431XG1oI0OutLYdY/FdtQtiG1+HHAZ1d5jamUCZRCaLQEi/pvhQHjuFg6FFRkFNU= 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.33 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 Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240205114139epoutp03c5e42521f5e0b42192ab59e9738c7c80~w9LDugxvm2972129721epoutp03w for ; Mon, 5 Feb 2024 11:41:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240205114139epoutp03c5e42521f5e0b42192ab59e9738c7c80~w9LDugxvm2972129721epoutp03w 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-kernel@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 0JKYcecAE4gtIuAi0btuFyOIzSxwmFHizBF+EFtYIFqi/9pKFhCbRUBVYtbZRnYQm1fATmLR mq+MENvkJWZe+g4VF5Q4OfMJC8QceYnmrbOZQRZLCFxjl1j65hQLRIOLxJcjD1khbGGJV8e3 sEPYUhKf3+1lg7DzJVpmz2KGBECNxNWnqhBhe4knFxeygoSZBTQl1u/ShwjLSkw9tY4JYi2f RO/vJ0wQcV6JHfNgbFWJX1OmQl0gLXH/91yoTR4SHZ0fwWqEBGIleq5PY5/AKD8LyTezkHwz C2HzAkbmVYySqQXFuempxaYFhnmp5XrFibnFpXnpesn5uZsYwclFy3MH490HH/QOMTJxMB5i lOBgVhLhNdtxIFWINyWxsiq1KD++qDQntfgQozQHi5I47+vWuSlCAumJJanZqakFqUUwWSYO TqkGJoa1E29IybRGRq+uW+P0sb9JavveG+tY7K6HzPn0SKh42SWzfTJ1a/rmK0SfYtJ/sbpI vI9v+uYGxeKc1QkKWxkqcrfznNrrp6l7bdZrscjYSbeTpyg+cKmXPfdHLSfk59+6iz1lO1mO v5bS2W8wNeXd9aMhs9LcN3wx8S6e67voY/Dqaxc9Bdl96/8aOvxiZD41JTd4d5vyUuutRbM/ znh5S7XEmiHm8u2tco2FzX2e0aoGf54GP01ZsyWgZGbz+k3Wc8/k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5p4775d540854dd8778388065a574b7862b X-Msg-Generator: CA X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240205111208epcas5p4775d540854dd8778388065a574b7862b References: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790059052835090740 X-GMAIL-MSGID: 1790059052835090740 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;