tools/bpftool: re-organize newline printing for map listing
authorPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Wed, 17 Apr 2019 00:22:58 +0000 (09:22 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 17 Apr 2019 02:48:26 +0000 (19:48 -0700)
commitd459b59ee0f5ed2fa96e77bbd919e095b1aeceb0
treebe1732953aae694f66ac96c2d626e99822bfaba2
parentf25377ee4fb1118650a08b403234aa6f57ce25a9
tools/bpftool: re-organize newline printing for map listing

Let's move the final newline printing in show_map_close_plain() at
the end of the function because it looks correct and consistent with
prog.c. Also let's do related changes for the line which prints
pinned file name.

Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/map.c