Skip to content

Commit

Permalink
can: rcar_canfd: Improve printing of global operational state
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Marc Kleine-Budde committed Jun 28, 2024
1 parent dd20d16 commit 0c1d0a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/can/rcar/rcar_canfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0c1d0a6

Please sign in to comment.