]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: remove blank line after btf_id when listing programs
authorQuentin Monnet <quentin.monnet@netronome.com>
Fri, 12 Apr 2019 13:29:34 +0000 (14:29 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 16 Apr 2019 08:13:12 +0000 (10:13 +0200)
commit7893561ff56af7a8328463cbbf8f2445a0704894
tree8e82483f6e320d71cb4df795b4cfc09ed4fcbe4f
parenta58da8a8bfe5ebcfcad32359323c86cc407c3a77
tools: bpftool: remove blank line after btf_id when listing programs

Commit ec9de5f0e64c ("tools/bpftool: show btf id in program information")
made bpftool print an empty line after each program entry when listing
the BPF programs loaded on the system (plain output). This is especially
confusing when some programs have an associated BTF id, and others
don't. Let's remove the blank line.

Signed-off-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: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/prog.c