Subject: Re: [PATCH iproute2-next v4 1/1] police: Add support for json output

From: Stephen Hemminger <[email-masked]>
Date: Mon, 5 Jul 2021 09:29:14 -0700

On Mon, 7 Jun 2021 09:44:08 +0300
Roi Dayan <[email-masked]> wrote:

> -	fprintf(f, "\n\tref %d bind %d", p->refcnt, p->bindcnt);
> +		print_string(PRINT_ANY, "linklayer", "linklayer %s ",
> +			     sprint_linklayer(linklayer, b2));
> +	print_int(PRINT_ANY, "ref", "ref %d ", p->refcnt);
> +	print_int(PRINT_ANY, "bind", "bind %d ", p->bindcnt);
>  	if (show_stats) {

This should add newline like original by using print_nl()