Skip to content

Commit 12dd14b

Browse files
tohojoborkmann
authored andcommitted
libbpf: Add missing newline in opts validation macro
The error log output in the opts validation macro was missing a newline. Fixes: 2ce8450 ("libbpf: add bpf_object__open_{file, mem} w/ extensible opts") Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 7800a3d commit 12dd14b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lib/bpf/libbpf_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static inline bool libbpf_validate_opts(const char *opts,
7676

7777
for (i = opts_sz; i < user_sz; i++) {
7878
if (opts[i]) {
79-
pr_warn("%s has non-zero extra bytes",
79+
pr_warn("%s has non-zero extra bytes\n",
8080
type_name);
8181
return false;
8282
}

0 commit comments

Comments
 (0)