Skip to content

Commit

Permalink
tools/resolve_btfids: Fix some error messages
Browse files Browse the repository at this point in the history
Add missing newlines and fix polarity of strerror argument.

Signed-off-by: Brendan Jackman <jackmanb@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/bpf/20201203102234.648540-1-jackmanb@google.com
  • Loading branch information
Brendan Jackman authored and Alexei Starovoitov committed Dec 3, 2020
1 parent a874c8c commit 22e8ebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/bpf/resolve_btfids/main.c
Original file line number Diff line number Diff line change
@@ -454,7 +454,7 @@ static int symbols_collect(struct object *obj)
return -ENOMEM;

if (id->addr_cnt >= ADDR_CNT) {
pr_err("FAILED symbol %s crossed the number of allowed lists",
pr_err("FAILED symbol %s crossed the number of allowed lists\n",
id->name);
return -1;
}
@@ -477,8 +477,8 @@ static int symbols_resolve(struct object *obj)
btf = btf__parse(obj->btf ?: obj->path, NULL);
err = libbpf_get_error(btf);
if (err) {
pr_err("FAILED: load BTF from %s: %s",
obj->path, strerror(err));
pr_err("FAILED: load BTF from %s: %s\n",
obj->path, strerror(-err));
return -1;
}

0 comments on commit 22e8ebe

Please sign in to comment.