]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iplink_can: add missing `]' of the bitrate, dbitrate and termination arrays
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Mon, 10 Oct 2022 14:16:38 +0000 (23:16 +0900)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 18 Oct 2022 03:25:12 +0000 (20:25 -0700)
commit3ab6d5d02f34c75c2547f470c8fe83a59cc9fdeb
treecd762952c195f1833620da4072d44ca857bd54ec
parent1ff227545ce1e0e9daf7ecb3eec52ddafff57eb5
iplink_can: add missing `]' of the bitrate, dbitrate and termination arrays

The command "ip --details link show canX" misses the closing bracket
`]' of the bitrate, the dbitrate and the termination arrays. The --json
output is not impacted.

Change the first argument of close_json_array() from PRINT_JSON to
PRINT_ANY to fix the problem. The second argument was already set
correctly.

Fixes: 67f3c7a5cc0d ("iplink_can: use PRINT_ANY to factorize code and fix signedness")
Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink_can.c