From: Daniel Borkmann Date: Mon, 14 Dec 2015 15:57:32 +0000 (+0100) Subject: bpf: minor fix in api and bpf_dump_error() usage X-Git-Tag: v4.5.0~93^2~9^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7f9c7fd11fa926bda2edc8bc492e7515753a32;p=thirdparty%2Fiproute2.git bpf: minor fix in api and bpf_dump_error() usage Fix a whitespace in bpf_dump_error() usage, and also a missing closing bracket in ntohl() macro for eBPF programs. Signed-off-by: Daniel Borkmann --- diff --git a/include/bpf_api.h b/include/bpf_api.h index 8503b9a56..0666a312e 100644 --- a/include/bpf_api.h +++ b/include/bpf_api.h @@ -53,7 +53,7 @@ #endif #ifndef ntohl -# define ntohl(X) __constant_ntohl((X) +# define ntohl(X) __constant_ntohl((X)) #endif /** Section helper macros. */ diff --git a/tc/tc_bpf.c b/tc/tc_bpf.c index beb74be6c..f9b2b007f 100644 --- a/tc/tc_bpf.c +++ b/tc/tc_bpf.c @@ -1042,7 +1042,7 @@ static int bpf_prog_attach(const char *section, "license:\'%s\') %s%s (%d)!\n\n", section, prog->type, prog->size / sizeof(struct bpf_insn), - prog->license, fd < 0 ? "rejected :" : + prog->license, fd < 0 ? "rejected: " : "loaded", fd < 0 ? strerror(errno) : "", fd < 0 ? errno : fd); }