Re: [PATCH iproute2-next v4 03/11] lib: json_print: Add print_on_off()

2020-11-10 Thread Leon Romanovsky
On Sun, Nov 08, 2020 at 10:14:08PM +0100, Petr Machata wrote: > The value of a number of booleans is shown as "on" and "off" in the plain > output, and as an actual boolean in JSON mode. Add a function that does > that. > > RDMA tool already uses a function named print_on_off(). This function > alw

Re: [PATCH iproute2-next v4 03/11] lib: json_print: Add print_on_off()

2020-11-08 Thread Leon Romanovsky
On Sun, Nov 08, 2020 at 10:14:08PM +0100, Petr Machata wrote: > The value of a number of booleans is shown as "on" and "off" in the plain > output, and as an actual boolean in JSON mode. Add a function that does > that. > > RDMA tool already uses a function named print_on_off(). This function > alw

[PATCH iproute2-next v4 03/11] lib: json_print: Add print_on_off()

2020-11-08 Thread Petr Machata
The value of a number of booleans is shown as "on" and "off" in the plain output, and as an actual boolean in JSON mode. Add a function that does that. RDMA tool already uses a function named print_on_off(). This function always shows "on" and "off", even in JSON mode. Since there are probably ver