]> git.proxmox.com Git - mirror_iproute2.git/commit
ip: iplink_bridge_slave: Convert to use print_on_off()
authorPetr Machata <me@pmachata.org>
Sat, 14 Nov 2020 22:53:59 +0000 (23:53 +0100)
committerDavid Ahern <dsahern@gmail.com>
Wed, 25 Nov 2020 04:43:30 +0000 (21:43 -0700)
commit07d82b4a79d1ae530bc85ba8dd867e2013052ae4
treec4c11d47d55aa1d3174035dd2d5422a70f10a7a8
parent3e0d2a73ba069db478739b8312d944f3068d54c5
ip: iplink_bridge_slave: Convert to use print_on_off()

Instead of rolling a custom on-off printer, use the one added to utils.c.
Note that _print_onoff() has an extra parameter for a JSON-specific flag
name. However that argument is not used, and never was. Therefore when
moving over to print_on_off(), drop this argument.

Signed-off-by: Petr Machata <me@pmachata.org>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/iplink_bridge_slave.c