Commit 0c1d0a69 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Marc Kleine-Budde

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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarWolfram Sang <wsa@kernel.org>
Reviewed-by: default avatarVincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/14c8c5ce026e9fec128404706d1c73c8ffa11ced.1716973640.git.geert+renesas@glider.beSigned-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent dd20d16d
...@@ -2049,8 +2049,9 @@ static int rcar_canfd_probe(struct platform_device *pdev) ...@@ -2049,8 +2049,9 @@ static int rcar_canfd_probe(struct platform_device *pdev)
} }
platform_set_drvdata(pdev, gpriv); platform_set_drvdata(pdev, gpriv);
dev_info(dev, "global operational state (clk %d, fdmode %d)\n", dev_info(dev, "global operational state (%s clk, %s mode)\n",
gpriv->extclk, gpriv->fdmode); gpriv->extclk ? "ext" : "canfd",
gpriv->fdmode ? "fd" : "classical");
return 0; return 0;
fail_channel: fail_channel:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment