[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240308145739.0eb50132@hermes.local>
Date: Fri, 8 Mar 2024 14:57:39 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Petr Machata <petrm@...dia.com>
Cc: David Ahern <dsahern@...nel.org>, <netdev@...r.kernel.org>, Ido Schimmel
<idosch@...dia.com>, <mlxsw@...dia.com>
Subject: Re: [PATCH iproute2-next 2/4] ip: ipnexthop: Support dumping next
hop group stats
On Fri, 8 Mar 2024 23:29:07 +0100
Petr Machata <petrm@...dia.com> wrote:
>
> +static void print_nh_grp_stats(const struct nh_entry *nhe)
> +{
> + int i;
> +
> + if (!show_stats)
> + return;
> +
> + open_json_array(PRINT_JSON, "group_stats");
> + print_string(PRINT_FP, NULL, "\n stats:\n", NULL);
Use print_nl() to handle single line mode.
Powered by blists - more mailing lists