[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201109051508.GB4527@unreal>
Date: Mon, 9 Nov 2020 07:15:08 +0200
From: Leon Romanovsky <leon@...nel.org>
To: Petr Machata <me@...chata.org>
Cc: netdev@...r.kernel.org, dsahern@...il.com,
stephen@...workplumber.org, john.fastabend@...il.com,
jiri@...dia.com, idosch@...dia.com,
Jakub Kicinski <kuba@...nel.org>,
Roman Mashak <mrv@...atatu.com>
Subject: Re: [PATCH iproute2-next v4 03/11] lib: json_print: Add
print_on_off()
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
> always shows "on" and "off", even in JSON mode. Since there are probably
> very few if any consumers of this interface at this point, migrate it to
> the new central print_on_off() as well.
>
> Signed-off-by: Petr Machata <me@...chata.org>
> ---
Thanks,
Reviewed-by: Leon Romanovsky <leonro@...dia.com>
Powered by blists - more mailing lists