Skip to content

Commit

Permalink
libbpf: Add missing newline in opts validation macro
Browse files Browse the repository at this point in the history
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 <toke@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191219120714.928380-1-toke@redhat.com
  • Loading branch information
Toke Høiland-Jørgensen authored and Daniel Borkmann committed Dec 19, 2019
1 parent 7800a3d commit 12dd14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lib/bpf/libbpf_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static inline bool libbpf_validate_opts(const char *opts,

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

0 comments on commit 12dd14b

Please sign in to comment.