clk: renesas: rzg2l: Use %x format specifier to print CLK_ON_R()
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 10 Oct 2023 13:26:56 +0000 (16:26 +0300)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 12 Oct 2023 18:05:36 +0000 (20:05 +0200)
Use the %x format specifier to print CLK_ON_R().  This makes debugging
easier as the value printed will be hexadecimal like in the hardware
manual.  Along with it add "0x" in front of the printed value.

Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20231010132701.1658737-2-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rzg2l-cpg.c

index d62f1bc1f60eda7cee00bc1470ff58de8f4d6ea5..764bd72cf059148530df0ecf49467e42abb91008 100644 (file)
@@ -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,
                enable ? "ON" : "OFF");
 
        value = bitmask << 16;