Re: [RFC v2 bpf-next 3/5] tools/bpf: bpftool, split the function do_dump()

2018-10-02 Thread Jakub Kicinski
On Tue, 2 Oct 2018 14:35:17 +0900, Prashant Bhole wrote: > do_dump() function in bpftool/map.c has deep indentations. In order > to reduce deep indent, let's move element printing code out of > do_dump() into dump_map_elem() function. > > Signed-off-by: Prashant Bhole Acked-by: Jakub Kicinski

[RFC v2 bpf-next 3/5] tools/bpf: bpftool, split the function do_dump()

2018-10-01 Thread Prashant Bhole
do_dump() function in bpftool/map.c has deep indentations. In order to reduce deep indent, let's move element printing code out of do_dump() into dump_map_elem() function. Signed-off-by: Prashant Bhole --- tools/bpf/bpftool/map.c | 83 - 1 file changed, 49