]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iplink_can: use invarg() instead of fprintf()
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Tue, 12 Nov 2024 17:27:54 +0000 (02:27 +0900)
committerDavid Ahern <dsahern@kernel.org>
Mon, 18 Nov 2024 16:50:31 +0000 (16:50 +0000)
commit68aaea862838bdaae5dcf3905188b97fcee32cbd
tree5153bf457a5fe24b5b9889e6d74a3079152a41ec
parent9b1f33d5a46dc42a89fcc6e10604249064262a26
iplink_can: use invarg() instead of fprintf()

invarg() is specifically designed to print error messages when an
invalid argument is provided. Replace the generic fprintf() by
invarg() in can_parse_opt().

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/iplink_can.c