Hi Serhey, On Thu, Dec 28, 2017 at 3:12 AM, Serhey Popovych <[email protected]> wrote: > One is missing in JSON output because fprintf() > is used instead of print_uint(). > > Signed-off-by: Serhey Popovych <[email protected]> > --- > ip/link_gre.c | 3 ++- > ip/link_gre6.c | 4 +++- > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/ip/link_gre.c b/ip/link_gre.c > index 896bb19..1e331c8 100644 > --- a/ip/link_gre.c > +++ b/ip/link_gre.c > @@ -476,7 +476,8 @@ static void gre_print_opt(struct link_util *lu, FILE *f, > struct rtattr *tb[]) > if (tb[IFLA_GRE_ERSPAN_INDEX]) { > __u32 erspan_idx = rta_getattr_u32(tb[IFLA_GRE_ERSPAN_INDEX]); > > - fprintf(f, "erspan_index %u ", erspan_idx); > + print_uint(PRINT_ANY, > + "erspan_index", "erspan_index %u ", erspan_idx); > } >
Did you pull the latest code from net-next branch? I think I already fix it. William
