Subject: Re: [PATCH iproute2-next 2/4] ip: ipnexthop: Support dumping next hop group stats

From: Stephen Hemminger <[email-masked]>
Date: Fri, 8 Mar 2024 14:57:39 -0800

On Fri, 8 Mar 2024 23:29:07 +0100
Petr Machata <[email-masked]> 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.