diff options
| author | Tony Ambardar <[email protected]> | 2024-09-16 08:37:40 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-10-04 00:47:36 +0000 |
| commit | e8957c0dde3c945db2403beb3131a5ad84860b5f (patch) | |
| tree | 156907cc2a9685462808a6324b6de385e18276d2 /tools/lib/bpf/libbpf.c | |
| parent | selftests/bpf: Fix uprobe_multi compilation error (diff) | |
| download | kernel-e8957c0dde3c945db2403beb3131a5ad84860b5f.tar.gz kernel-e8957c0dde3c945db2403beb3131a5ad84860b5f.zip | |
libbpf: Improve log message formatting
Fix missing newlines and extraneous terminal spaces in messages.
Signed-off-by: Tony Ambardar <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/086884b7cbf87e524d584f9bf87f7a580e378b2b.1726475448.git.tony.ambardar@gmail.com
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
| -rw-r--r-- | tools/lib/bpf/libbpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 1ef221df0541..a7cbb30605da 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -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); |
