Commit 22e8ebe3 authored by Brendan Jackman's avatar Brendan Jackman Committed by Alexei Starovoitov

tools/resolve_btfids: Fix some error messages

Add missing newlines and fix polarity of strerror argument.
Signed-off-by: default avatarBrendan Jackman <jackmanb@google.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/bpf/20201203102234.648540-1-jackmanb@google.com
parent a874c8c3
...@@ -454,7 +454,7 @@ static int symbols_collect(struct object *obj) ...@@ -454,7 +454,7 @@ static int symbols_collect(struct object *obj)
return -ENOMEM; return -ENOMEM;
if (id->addr_cnt >= ADDR_CNT) { 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); id->name);
return -1; return -1;
} }
...@@ -477,8 +477,8 @@ static int symbols_resolve(struct object *obj) ...@@ -477,8 +477,8 @@ static int symbols_resolve(struct object *obj)
btf = btf__parse(obj->btf ?: obj->path, NULL); btf = btf__parse(obj->btf ?: obj->path, NULL);
err = libbpf_get_error(btf); err = libbpf_get_error(btf);
if (err) { if (err) {
pr_err("FAILED: load BTF from %s: %s", pr_err("FAILED: load BTF from %s: %s\n",
obj->path, strerror(err)); obj->path, strerror(-err));
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment