mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-03 07:09:06 +08:00
libbpf: Improve log message formatting
Fix missing newlines and extraneous terminal spaces in messages. Signed-off-by: Tony Ambardar <tony.ambardar@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/086884b7cbf87e524d584f9bf87f7a580e378b2b.1726475448.git.tony.ambardar@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
committed by
Andrii Nakryiko
parent
3fb92e63e0
commit
ceeb7211c9
@@ -12765,7 +12765,7 @@ struct bpf_link *bpf_program__attach_freplace(const struct bpf_program *prog,
|
||||
}
|
||||
|
||||
if (prog->type != BPF_PROG_TYPE_EXT) {
|
||||
pr_warn("prog '%s': only BPF_PROG_TYPE_EXT can attach as freplace",
|
||||
pr_warn("prog '%s': only BPF_PROG_TYPE_EXT can attach as freplace\n",
|
||||
prog->name);
|
||||
return libbpf_err_ptr(-EINVAL);
|
||||
}
|
||||
@@ -13839,7 +13839,7 @@ int bpf_object__open_subskeleton(struct bpf_object_subskeleton *s)
|
||||
map_type = btf__type_by_id(btf, map_type_id);
|
||||
|
||||
if (!btf_is_datasec(map_type)) {
|
||||
pr_warn("type for map '%1$s' is not a datasec: %2$s",
|
||||
pr_warn("type for map '%1$s' is not a datasec: %2$s\n",
|
||||
bpf_map__name(map),
|
||||
__btf_kind_str(btf_kind(map_type)));
|
||||
return libbpf_err(-EINVAL);
|
||||
|
||||
Reference in New Issue
Block a user