On Tue, 16 Apr 2019 10:22:15 +0100, Quentin Monnet wrote:
> > diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c
> > index cda0f27fa895..de3e4cb32d21 100644
> > --- a/tools/bpf/bpftool/map.c
> > +++ b/tools/bpf/bpftool/map.c
> > @@ -550,6 +550,9 @@ static int show_map_close_json(int fd, struct 
> > bpf_map_info *info)
> >             jsonw_end_array(json_wtr);
> >     }
> >   
> > +   if (info->btf_id)
> > +           jsonw_int_field(json_wtr, "btf_id", info->btf_id);
> > +  
> 
> Just as a note, if you want to have things more consistent with prog.c, 
> you could print the btf_id _before_ the paths of pinned maps in JSON, 
> since this is what you did for programs.

+1, otherwise:

Reviewed-by: Jakub Kicinski <jakub.kicin...@netronome.com>

for both patches, thanks!

Reply via email to