Skip to content

Commit 22e8ebe

Browse files
bjackmanAlexei Starovoitov
authored andcommitted
tools/resolve_btfids: Fix some error messages
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
1 parent a874c8c commit 22e8ebe

File tree

1 file changed

+3
-3
lines changed
  • tools/bpf/resolve_btfids

1 file changed

+3
-3
lines changed

tools/bpf/resolve_btfids/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ static int symbols_collect(struct object *obj)
454454
return -ENOMEM;
455455

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

0 commit comments

Comments
 (0)