]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
libbpf: Add missing newline in opts validation macro
authorToke Høiland-Jørgensen <toke@redhat.com>
Thu, 19 Dec 2019 12:07:14 +0000 (13:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:36:59 +0000 (04:36 -0800)
commit 12dd14b230b3c742b80272ecb8a83cdf824625ca upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/lib/bpf/libbpf_internal.h

index 97ac17a64a58dde59adfedb34f0959c8b4c50215..fcc1281431f8523c7cd7b7f1eec9cc7883c75d36 100644 (file)
@@ -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;
                        }