aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2018-12-10 10:53:24 -0800
committerAlexei Starovoitov <ast@kernel.org>2018-12-10 12:26:59 -0800
commit10a5ce98539948affbdc28dc0f39a1b6b2307f9d (patch)
treef1e5a55f302ce6a413678ebfe8f3a33c3210cde7 /tools/bpf/bpftool/prog.c
parentbpf: relax verifier restriction on BPF_MOV | BPF_ALU (diff)
downloadlinux-dev-10a5ce98539948affbdc28dc0f39a1b6b2307f9d.tar.xz
linux-dev-10a5ce98539948affbdc28dc0f39a1b6b2307f9d.zip
bpf: bpftool: Fix newline and p_err issue
This patch fixes a few newline issues and also replaces p_err with p_info in prog.c Fixes: b053b439b72a ("bpf: libbpf: bpftool: Print bpf_line_info during prog dump") Cc: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Martin KaFai Lau <kafai@fb.com> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to '')
-rw-r--r--tools/bpf/bpftool/prog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c
index 65b921ffd10a..9a78ebbcea1d 100644
--- a/tools/bpf/bpftool/prog.c
+++ b/tools/bpf/bpftool/prog.c
@@ -592,7 +592,6 @@ static int do_dump(int argc, char **argv)
info.jited_line_info_rec_size = jited_linfo_rec_size;
info.jited_line_info = ptr_to_u64(jited_linfo);
-
err = bpf_obj_get_info_by_fd(fd, &info, &len);
close(fd);
if (err) {
@@ -674,7 +673,7 @@ static int do_dump(int argc, char **argv)
if (linfo_cnt) {
prog_linfo = bpf_prog_linfo__new(&info);
if (!prog_linfo)
- p_err("error in processing bpf_line_info. continue without it.");
+ p_info("error in processing bpf_line_info. continue without it.");
}
if (filepath) {