mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
tools/resolve_btfids: Fix some error messages
Add missing newlines and fix polarity of strerror argument. Signed-off-by: Brendan Jackman <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
This commit is contained in:
committed by
Alexei Starovoitov
parent
a874c8c389
commit
22e8ebe35a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user