Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp29249lql; Fri, 12 Apr 2024 02:37:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0WcRXKA3LmNIAhMuO/rtljdvry4ezQv3gnLkk+/ESPDkS83+W4cZ9IJgJDi1YB5jaLf07raSLhBNZe4cB5lYgnteG3nlLGu6hKYqOOw== X-Google-Smtp-Source: AGHT+IHxPp2sO3AcziIL6Yb+anT5s2OkdKB5bWxWwSkpzdsRjNzOJPJ9sCD+2X8NNOub9jL63s0m X-Received: by 2002:aca:241a:0:b0:3c6:9d0:9349 with SMTP id n26-20020aca241a000000b003c609d09349mr2188736oic.23.1712914647217; Fri, 12 Apr 2024 02:37:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712914647; cv=pass; d=google.com; s=arc-20160816; b=IVO6rnu/tCq8OP2NUDmv2t3zyBAe4ep0vPTcUYS+9qeWb2l3NOh6vmjrwN2rmO0hHg b824f2HEhbKAxEBsG52ZIJQO8no5Q/Y0rCEZ1Ioe9ffHwKBbt179mDnlvHmHyaXhVEx6 DUGjYSqQVqxNkMRl60lhPz/YhNTne8YUub/HcaQ04qc5DLvM8FhHszjalGQQlVfjpYSU bO7T3kACtYfVHzyH22ltsaumkAnB1WGsbfD1RNMAIb56SJYKd7d16WYifKrxRUNcFl+l OqTGVyO1EFYdmq32Za0M6I7Dev/c4NfjjyD2rKyO8INhG2f4fIRvwyt8ga8dKqXNUhNs FrNg== 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=18OZ4wgAdnYQqHPQ+QR1sMRA2rNC7ROaX7uQYViKJU4=; fh=TP52zzzCU441Nlf3WGkHNseTWvXaMJCePAdamKN12QU=; b=yCvsCArQGwl0nCYtlOAfpLBkOWguOhxFX8J7eodA0+XgndgECUo+uNs5zjQEHms16z iUKzskvWW5mX+RIHEkGPFBhR4CUVSRf0qOyQHBAVZ0utEHJ3uX3DRvFyzQZeMFl6fFc6 9au88nNxQQTdSiTjk3/j3MOWyrbn+XyS1GFdilCMqEV9t2U33LW/bQQqODOuDhU8omGk E7GXjYOkkf9ULt8oFOjWMwFJUcVCq+SZTZ7ACq7WRcFmmlkeWN+MsZmGDUU/3QKuog1b 9aNNpDm1dgQVYHVpk8heVolHnlBT8gl8w9Y1sn9re+ywXSPpuFFHX6x53CkqHhz76NF6 7MkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=nwVeG1Lb; 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-142421-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142421-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m3-20020a056a00080300b006eac82adfd4si3075062pfk.152.2024.04.12.02.37.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142421-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=nwVeG1Lb; 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-142421-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142421-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3AF2A28228F for ; Fri, 12 Apr 2024 09:36:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 470C151C34; Fri, 12 Apr 2024 09:36:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="nwVeG1Lb" Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (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 DEB0C5102B for ; Fri, 12 Apr 2024 09:36:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712914587; cv=none; b=QYxQyPgsUrjUxDMEh5vVQbLFy0PDXwkrTBRaYtBY4kb2bWqp7z0DEuKjWp6mRTmorXf3iVaHbm54njhgxA/VOiIVEA4By5fzSCTyrjn1Ns1LNUSEUSSB9rhvG2gNAVdFbphS2IcdZuA+TMP3j79if6vKHQA5AchcGtgqbTIbm9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712914587; c=relaxed/simple; bh=ECG66815UF5U5UZ532M011H3Hgu9sb1nS+RlWPOzlVI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: References; b=ASD3f9BdGtvlrM8UQRYvG/9VHaSOR8ENnz7RVuYkwwjS1TxJFazXz7zem52vHMtxLA/Y58PBz/XdlKvq003mWlNbYRnTvum5vEagMZUDQrSZFBL5YVIDz2teC8tQWwlT3wC8/wC2L8j8Vr9m+oVtaVmelvDibxCHKpsucRDvLhk= 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=nwVeG1Lb; arc=none smtp.client-ip=203.254.224.34 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 epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20240412093622epoutp045a1fadc1ac7bdb22c78fab2ebc2c731e~FfrzQUwQM2155621556epoutp04X for ; Fri, 12 Apr 2024 09:36:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20240412093622epoutp045a1fadc1ac7bdb22c78fab2ebc2c731e~FfrzQUwQM2155621556epoutp04X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1712914582; bh=18OZ4wgAdnYQqHPQ+QR1sMRA2rNC7ROaX7uQYViKJU4=; h=From:To:Cc:Subject:Date:References:From; b=nwVeG1Lbkm8L09VoWgzd/8konc0f8a/Z7G7DuXLrz35HRtr3SSMZ/ytNm+WKxIe4a J82srKZMG8QJN+KPuDWAh56/Q4145Ce5+MnPIuuxWtLnTwYkz9IJrGCjGMuVqEoNfq TjqdWY4mClLi3jeBRsbPGDG93rLiIoYCwzKiPF4Q= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20240412093622epcas5p385256fbd7d1a71ac8596442246fd206d~Ffry0_EfB1567515675epcas5p38; Fri, 12 Apr 2024 09:36:22 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id C1.9B.09665.69009166; Fri, 12 Apr 2024 18:36:22 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20240412090801epcas5p1beb5c87f7582cf4f53c245a642468763~FfTCzoULs2335923359epcas5p1O; Fri, 12 Apr 2024 09:08:01 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240412090801epsmtrp1648b0aa57349dc8c8ecdfcd74ae84238~FfTCyqBJq0149901499epsmtrp1B; Fri, 12 Apr 2024 09:08:01 +0000 (GMT) X-AuditID: b6c32a4b-829fa700000025c1-6a-661900963857 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 3B.70.08390.1F9F8166; Fri, 12 Apr 2024 18:08:01 +0900 (KST) Received: from localhost.localdomain (unknown [107.109.224.44]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20240412090759epsmtip230e5033ab5bdd5f1ba3ac3202ccf54c7~FfTBKbzXQ1740317403epsmtip2g; Fri, 12 Apr 2024 09:07:59 +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, maninder1.s@samsung.com, Onkarnath Subject: [PATCH v2 1/1] clk: imgtec: use %pe for better readability of errors while printing Date: Fri, 12 Apr 2024 14:37:49 +0530 Message-Id: <20240412090749.15392-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 Content-Transfer-Encoding: 8bit X-Brightmail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WaedOFE4/ dYAvJVSJpTgj0VCLuag4EQA6AiKTnAMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrELMWRmVeSWpSXmKPExsWy7bCSvO7HnxJpBt+PCVl87LnHanF51xw2 i85NWxktDs9vY7G4eMrVYkXPB1aLjm9zWSw23su2+HdtI4sDp8f7G63sHptWdbJ59G1Zxejx eZNcAEsUl01Kak5mWWqRvl0CV8aBCctYCi5xV3w82cjewHiWs4uRg0NCwERi9d7aLkYuDiGB 3YwSa6/tZ+li5ASKS0t8ujyHHcIWllj57zk7RNEnRomGzauZQBJsAloSM+4cALNFBDwkdh15 wwxSxCywg1HicvMVsG5hgRiJmTMvghWxCKhKdKzYxQZi8wrYSJw7fpoZYoO8xMxL39kh4oIS J2c+AbuCGSjevHU28wRGvllIUrOQpBYwMq1ilEwtKM5Nzy02LDDKSy3XK07MLS7NS9dLzs/d xAgOVi2tHYx7Vn3QO8TIxMF4iFGCg1lJhFdaSzRNiDclsbIqtSg/vqg0J7X4EKM0B4uSOO+3 170pQgLpiSWp2ampBalFMFkmDk6pBqboZ1teqics3SR4+FpRwiEnE1mfz7putksP/unYaHzP s9x3Ss3z+Zm8a1bczStde7stcolUwrpipqXXWDf3/jhn2BbYlrJqc+p2Of6QNKvdzyrU7+7J WLcsfVGaa9JTjmPW3d3cPCsUX+S0TmUomnq7o3xmWeWNzu293YI6tyy+2n+LYpQ0i41+nCbD urH6XW34meM2X/+KBs/Q3/RDhmfhB/OM9J2+fifV5/X+zchoSuau55g+hz17kukexdvL9Fr4 DJbdMnna8KTCy+OmZUGfybu7B6Z0fD1hlypqd3bPwf7EHxLzLCPslKQubv95oVlw5tbOQxd/ 1PvMTxeJWbjB87Ct5xHF+X7LOnZc2a/EUpyRaKjFXFScCAC1KF73xQIAAA== X-CMS-MailID: 20240412090801epcas5p1beb5c87f7582cf4f53c245a642468763 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P X-CMS-RootMailID: 20240412090801epcas5p1beb5c87f7582cf4f53c245a642468763 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: Onkarnath --- v1 -> v2 : Removed unnecessary SOB tag. 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; -- 2.25.1