can: netlink: can_changelink(): convert from netdev_err() to NL_SET_ERR_MSG_FMT()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 27 Sep 2022 11:12:35 +0000 (13:12 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Feb 2023 12:57:26 +0000 (13:57 +0100)
commit1494d27f64f0855086bfefa0391f4e9f29315699
treeeeaab850a56a49fe66223b1c70478225b39af72e
parent73335cfab7fd7c2bfd1696730733b8b952545951
can: netlink: can_changelink(): convert from netdev_err() to NL_SET_ERR_MSG_FMT()

Since commit 51c352bdbcd2 ("netlink: add support for formatted extack
messages") formatted extack messages are supported to inform the user
space or warnings/errors during netlink calls.

Replace the netdev_err() by NL_SET_ERR_MSG_FMT() to better inform the
user about the problem. While there, use %u to print unsigned values
and improve error message a bit.

Link: https://lore.kernel.org/all/20230202110854.2318594-9-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev/netlink.c