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 <daniel@iogearbox.net>
#endif
#ifndef ntohl
-# define ntohl(X) __constant_ntohl((X)
+# define ntohl(X) __constant_ntohl((X))
#endif
/** Section helper macros. */
"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);
}