]> git.itanic.dy.fi Git - linux-stable/commit
can: dev: can_restart(): move debug message and stats after successful restart
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 29 Sep 2023 08:18:02 +0000 (10:18 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 5 Oct 2023 19:33:41 +0000 (21:33 +0200)
commitf0e0c809c0be05fe865b9ac128ef3ee35c276021
tree01df0d1ed2857c2e9dc30e1f5d08185102641c17
parent8f3ec204d340af183fb2bb21b8e797ac2ed012b2
can: dev: can_restart(): move debug message and stats after successful restart

Move the debug message "restarted" and the CAN restart stats_after_
the successful restart of the CAN device, because the restart may
fail.

While there update the error message from printing the error number to
printing symbolic error names.

Link: https://lore.kernel.org/all/20231005-can-dev-fix-can-restart-v2-4-91b5c1fd922c@pengutronix.de
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
[mkl: mention stats in subject and description, too]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/dev.c