Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp915109rdg; Wed, 11 Oct 2023 08:56:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEqRNHGs18IsyXE9m1a/D13cEq4GuKGTdIu87i8ajvElAM8TCM8b/yYe9MdU0U9MIkbXcBm X-Received: by 2002:a05:6a21:6811:b0:15e:b8a1:57b0 with SMTP id wr17-20020a056a21681100b0015eb8a157b0mr16831870pzb.39.1697039782445; Wed, 11 Oct 2023 08:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697039782; cv=none; d=google.com; s=arc-20160816; b=KuCna0Fo8Z3AZhy1ukVGLX7fNkkpHVc+K6OmbCInZVzg/cVGUqcJl/p4coFbdzJ3WH 0MoXRH7kJB94nmfEUvGpy/NJvVTDivVcm0qvheV+uIRMLkPozcErAYTAmSrlfjrgqnse w44XlHhNo8FaPdZCAdEsA5D/22WU+Q0DzWmdAT4iwrX+b//b7tZ8/lYId+4zwVs5bm2v 9AzdXW8OhO7xM7uMkm4wzoTK+kTiD9ZCY3CIYRyASFYchwkT1liK5NoyXcdefTJDOHF5 JM3SfLwWhYnNmMo8gq3seZ2a9/r3U1jnGk7kL3qjgslWwH13r7NDlrii17nwnL1KVaC0 19aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KbOpE5VKjIMjXNX7bXqdn8URAwp8xkDDntfrb/FwR4w=; fh=Fngxf/6Q3Z0hQuGGerMRsTXKnuRa+fHbZMdxCjhOh9M=; b=hK+fbyZPvNhxfxJTwA3l6SgLW+wtVDV0N2BSDy9eD3QsA8z2zQAmMyCy2FJdMz8r34 S0TUNG7HiohBsboYi3tq5M+E+Ld5E4XhID76nLgUlMqxSuRS6CpPmWD6HubHHVnJAOtJ SWA0JYAFQEXGjRiaaa4CQXvz88n6+HMKsIxMa5D+fjpXv6VhjpvEBvh9XD06DGEA7vQH qczjQhS8NuPsE9yNv6BGRA76diptJtW7jGz7kNa3Yog/IN5rn/dUz/JM8ScY4dlkivdl RWCSJAKmzZ14/un65IyYGY19PfLqnZsI73+P58rY9oG7c5fr0NRAMroyV2hyc19j8qtk F+Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=TBV6E1D2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id 186-20020a6301c3000000b00578d460cd7esi51878pgb.431.2023.10.11.08.56.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 08:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=TBV6E1D2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 968E780A999B; Wed, 11 Oct 2023 08:55:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346951AbjJKPzf (ORCPT + 99 others); Wed, 11 Oct 2023 11:55:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346938AbjJKPzd (ORCPT ); Wed, 11 Oct 2023 11:55:33 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16BE1AF for ; Wed, 11 Oct 2023 08:55:31 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-53b8f8c6b1fso73924a12.0 for ; Wed, 11 Oct 2023 08:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1697039729; x=1697644529; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=KbOpE5VKjIMjXNX7bXqdn8URAwp8xkDDntfrb/FwR4w=; b=TBV6E1D2JK263ZDj6oMrEJtO8JnZbEOmWj+afjWEctnm8Dsqu50FFbTmeFjo6ITZZX cbpRqvHFfm9IN5kBMIsVSERK+48FwXiS/KHSZfwYMvKivBRgIDLni+g0OIUfkffTDx99 85ZTqByVHg7rIXdNejmpuPADvBgQqCS4AtDLyjER2za7wljt9FZjwHzwhurGi1AQqKxB TpGVeGt/sEtcRSN4pL6NaysaE7tNHx1HRDAYnYCFcUvq3MwAWoUfBzp74rx8GwVA2VgR KHkiM9ilp+JbkSuUhce72PiQZ0eko1VQoxayjjXmwlEcN0eGgnwKUMsDfcW8BEuRq1hY YZ7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697039729; x=1697644529; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KbOpE5VKjIMjXNX7bXqdn8URAwp8xkDDntfrb/FwR4w=; b=dtmeHTkHlCURd03JCeaSlSeoehNWOUM2+/xb0LHQO/SKzXiRo/OTGy6wMR4NLgOTLk BX7U/YGEFIcqRy877UjF+o5vryqMl+FaJFnZG2A2Jy6TyvMTfMwgrIejqLD1sAe8SjjT LkmJXxm3vfpcrmocGO1ZgMgAiGS4oZA7z55nzf0Q5Wnlof1hOcYY0DFo0PXExIHEbO6H GS3g5iRWSnyrFoHpsFR1OrOXpR2/hGMAIdO8lKZwH1maOu5NV+dYXClhrW5QNOWS01h3 tnsHY8M/H/5XDc57KQOQo2an/jrqp4RpOs05z83Uxyjp0x7Ewxu6TGIn0mqF32liawWI 65Pg== X-Gm-Message-State: AOJu0YzVpqZT26s0mJ9H56St6ROiPBk/5UBzPhvYonXATnivrvjC5kq+ XZc46fi/r0qHXokWA9DzAdXKAg== X-Received: by 2002:aa7:c998:0:b0:530:ccf7:37af with SMTP id c24-20020aa7c998000000b00530ccf737afmr18702868edt.12.1697039729420; Wed, 11 Oct 2023 08:55:29 -0700 (PDT) Received: from [192.168.50.4] ([82.78.167.133]) by smtp.gmail.com with ESMTPSA id ec22-20020a0564020d5600b0053defc8c15asm460905edb.51.2023.10.11.08.55.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Oct 2023 08:55:28 -0700 (PDT) Message-ID: Date: Wed, 11 Oct 2023 18:55:27 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/6] clk: renesas: rzg2l: Use %x format specifier to print CLK_ON_R() Content-Language: en-US To: Geert Uytterhoeven Cc: Sergei Shtylyov , magnus.damm@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Claudiu Beznea References: <20231010132701.1658737-1-claudiu.beznea.uj@bp.renesas.com> <20231010132701.1658737-2-claudiu.beznea.uj@bp.renesas.com> <8226bd48-4297-0b32-c733-2e569114a934@gmail.com> From: claudiu beznea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 11 Oct 2023 08:55:50 -0700 (PDT) X-Spam-Level: ** Hi, Geert, On 11.10.2023 10:43, Geert Uytterhoeven wrote: > Hi Claudiu, > > On Wed, Oct 11, 2023 at 9:37 AM claudiu beznea wrote: >> On 10.10.2023 17:52, Sergei Shtylyov wrote: >>> On 10/10/23 4:26 PM, Claudiu wrote: >>>> From: Claudiu Beznea >>>> >>>> Use %x format specifier to print CLK_ON_R(). This is easier when >>>> debugging as the value printed will be hexadecimal like in the hardware >>>> manual. Along with it "0x" has been added in front of the printed value. >>>> >>>> Signed-off-by: Claudiu Beznea >>>> --- >>>> drivers/clk/renesas/rzg2l-cpg.c | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/drivers/clk/renesas/rzg2l-cpg.c b/drivers/clk/renesas/rzg2l-cpg.c >>>> index d62f1bc1f60e..764bd72cf059 100644 >>>> --- a/drivers/clk/renesas/rzg2l-cpg.c >>>> +++ b/drivers/clk/renesas/rzg2l-cpg.c >>>> @@ -1213,7 +1213,7 @@ static int rzg2l_mod_clock_endisable(struct clk_hw *hw, bool enable) >>>> return 0; >>>> } >>>> >>>> - dev_dbg(dev, "CLK_ON %u/%pC %s\n", CLK_ON_R(reg), hw->clk, >>>> + dev_dbg(dev, "CLK_ON 0x%x/%pC %s\n", CLK_ON_R(reg), hw->clk, >>> >>> Perhaps "%#x" instead of "0x%x"? >> >> Yes, better, thanks! > > "%#" is not very common in drivers/clk/. > > And to me it always raises the question: What does "alternate form" mean > for this conversion specifier and this implementation of vsnprintf()? OK, I have no strong opinion on this. Please let me know in case you need me to send a new version. Thank you, Claudiu Beznea > > Gr{oetje,eeting}s, > > Geert >