summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2024-05-29 11:12:14 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2024-06-28 09:34:42 +0200
commit0c1d0a69c5e7314f3787bc4272e286d800dbfc56 (patch)
treec37439faaaecd09c4aed59554e19fe1eca0b0716
parentcan: rcar_canfd: Simplify clock handling (diff)
downloadlinux-0c1d0a69c5e7314f3787bc4272e286d800dbfc56.tar.xz
linux-0c1d0a69c5e7314f3787bc4272e286d800dbfc56.zip
can: rcar_canfd: Improve printing of global operational state
Replace the printing of internal numerical values by the printing of strings reflecting their meaning, to make the message self-explanatory. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa@kernel.org> Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Link: https://lore.kernel.org/all/14c8c5ce026e9fec128404706d1c73c8ffa11ced.1716973640.git.geert+renesas@glider.be Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--drivers/net/can/rcar/rcar_canfd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/can/rcar/rcar_canfd.c b/drivers/net/can/rcar/rcar_canfd.c
index 474840b58e8f..c2c1c47bcc7a 100644
--- a/drivers/net/can/rcar/rcar_canfd.c
+++ b/drivers/net/can/rcar/rcar_canfd.c
@@ -2049,8 +2049,9 @@ static int rcar_canfd_probe(struct platform_device *pdev)
}
platform_set_drvdata(pdev, gpriv);
- dev_info(dev, "global operational state (clk %d, fdmode %d)\n",
- gpriv->extclk, gpriv->fdmode);
+ dev_info(dev, "global operational state (%s clk, %s mode)\n",
+ gpriv->extclk ? "ext" : "canfd",
+ gpriv->fdmode ? "fd" : "classical");
return 0;
fail_channel: