Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp639342rdg; Wed, 11 Oct 2023 00:44:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6Y8DYYDzF6Z0ctKzvaYHAFYA7srW8xGhld3ygpquYfS4Bk034lKzqnD/LTAv69thWeXS4 X-Received: by 2002:a05:6808:1287:b0:3a7:2690:94e0 with SMTP id a7-20020a056808128700b003a7269094e0mr29931722oiw.4.1697010286881; Wed, 11 Oct 2023 00:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697010286; cv=none; d=google.com; s=arc-20160816; b=mQXfIBne+5U/orttg86uz0/1nm/57fnIvxUgca3DX10hp6s7n8AxqjrWr5uyREYdiP p63gqwIZuOW6viruRSntGWTn6F5t5mQEedQL9vRP7F5OrwXbjaMCwvAqLcraAOZJf4AF 6NPF6BQ+kuT1zQs+TBLfwqJmyKpUa7/K1SbuzceTbIezlZYEl07fZl3vfjgzzRdhJMOf 6p2jk2/ODSLQOXHZ8uxrUoi/05Q948YbI1MYBhVmG/gVP33suN3rJt7PC4z5doZawULf bq7JIaqo2+8j9nF5y4d67RgXA4q3LSbJ2cA19GJBJ72eD/8OUtoWWjHis6TgZ7B4lGr1 J7/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=Jjie/JtPU67L3Fn9EMelme3CDhuPtL9w+bbcdaudLNU=; fh=LxFpHR3kH5+37utWQxGofSNhWjnmMO7NWfBGBrVIccM=; b=y4P3DmvnbJ/rY5gEj6UpeuEo9pltfCAsAPSdbT3SeOtS4qvE4u0AxNkVpp7XmNnxkI kgrdCRn1hs6599IBrCn1pkQfkM3boKTEhJymL+Ua9+r7fMHvf8nVFFAmfCkmVlcMGFKy g023anhBuODqFkBUPliKa34L2rUxomwhMUSXANBadCNPpm+NBasJIK5hCBRfP0rhzinC xaSZjrJwf8tDiHMg4d2I67FjiXVK5/sNtdyGipzeC8dlr0/cFrWTv9IEtv7kVEqcr3uU 8WSPM7B4NKk5VkxaNmHAItGjAlnVmws9h/XbeOkg0E0IAv3c/N5jsuodKruBtYbZBDhw WN2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id q2-20020a656a82000000b00585a5e9a965si14200920pgu.161.2023.10.11.00.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 00:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 5D095801BA70; Wed, 11 Oct 2023 00:44:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbjJKHoL convert rfc822-to-8bit (ORCPT + 99 others); Wed, 11 Oct 2023 03:44:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbjJKHoK (ORCPT ); Wed, 11 Oct 2023 03:44:10 -0400 Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02644A7; Wed, 11 Oct 2023 00:44:08 -0700 (PDT) Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-5a7ab31fb8bso27191877b3.1; Wed, 11 Oct 2023 00:44:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697010248; x=1697615048; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TAbstOtgr1+rfCeSYFk49UDtYafhh+G+CKqe3mK9hKE=; b=OCYNSo9Pwoueo0hUDZZyu9IrweR8X0lE2hwm6+wskOGDrJFJsJv2a/rLFojq4RB7z2 WNbe3ItyBFkSesBdpRtw+dGdppx/8rqjEgpnKvAxJXnBCcNgHrpdUG/VJZZvTK8ypQYI 9EIfyC9DU6ANVKMH05eejInAmchMZpLK7YsejzgeXbHOHHdkh/EVbwN11Kr90Ud7gorp fNTwqMdrJZqBl0O09TgH5rKbOF2ULe0xB7CXW4NoIeYjCcHuN1E07uoBEPW036G2B8LC SlZjaEDiaTcoC4eWae7Y8LRWYIZaz94+DBoNG+5S/U7vXB4cjUBCeZxgR7wcH8RD7aeH SzwQ== X-Gm-Message-State: AOJu0YzLJXm4WHbTZO8bB0RoPhJEeMTygclLb/+xjZxEm/4STBNLOUx6 jRIbB+Ht3qzwih/C6GQzKRDkb+GWFhilBA== X-Received: by 2002:a81:d24f:0:b0:5a1:d398:2e with SMTP id m15-20020a81d24f000000b005a1d398002emr24707493ywl.37.1697010247892; Wed, 11 Oct 2023 00:44:07 -0700 (PDT) Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com. [209.85.128.169]) by smtp.gmail.com with ESMTPSA id i84-20020a819157000000b005a7bfec6c34sm1075535ywg.46.2023.10.11.00.44.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Oct 2023 00:44:07 -0700 (PDT) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-5a7ab31fb8bso27191687b3.1; Wed, 11 Oct 2023 00:44:07 -0700 (PDT) X-Received: by 2002:a0d:ead5:0:b0:5a7:e5de:79a4 with SMTP id t204-20020a0dead5000000b005a7e5de79a4mr562439ywe.17.1697010247014; Wed, 11 Oct 2023 00:44:07 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 11 Oct 2023 09:43:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/6] clk: renesas: rzg2l: Use %x format specifier to print CLK_ON_R() To: claudiu beznea 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 00:44:44 -0700 (PDT) X-Spam-Level: ** 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()? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds