OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7800a3d
)
libbpf: Add missing newline in opts validation macro
author
Toke Høiland-Jørgensen
<toke@redhat.com>
Thu, 19 Dec 2019 12:07:14 +0000
(13:07 +0100)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Thu, 19 Dec 2019 15:08:46 +0000
(16:08 +0100)
The error log output in the opts validation macro was missing a newline.
Fixes:
2ce8450ef5a3
("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
tools/lib/bpf/libbpf_internal.h
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/libbpf_internal.h
b/tools/lib/bpf/libbpf_internal.h
index
7d71621
..
8c3afbd
100644
(file)
--- a/
tools/lib/bpf/libbpf_internal.h
+++ b/
tools/lib/bpf/libbpf_internal.h
@@
-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;
}