diff options
author | Florian Westphal <fw@strlen.de> | 2018-02-09 15:52:07 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-02-14 21:05:38 +0100 |
commit | b26066447bb8599b393b2dd2bbeb68767e09ba07 (patch) | |
tree | 1f48acc4a27a21291342c4a12df60f2d1bceaae2 /net/netfilter/xt_bpf.c | |
parent | c08e5e1ee6d65917af2bb12c2c568d637a682c44 (diff) | |
download | linux-b26066447bb8599b393b2dd2bbeb68767e09ba07.tar.gz linux-b26066447bb8599b393b2dd2bbeb68767e09ba07.tar.bz2 linux-b26066447bb8599b393b2dd2bbeb68767e09ba07.zip |
netfilter: x_tables: use pr ratelimiting in all remaining spots
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_bpf.c')
-rw-r--r-- | net/netfilter/xt_bpf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/netfilter/xt_bpf.c b/net/netfilter/xt_bpf.c index 06b090d8e901..a2cf8a6236d6 100644 --- a/net/netfilter/xt_bpf.c +++ b/net/netfilter/xt_bpf.c @@ -7,6 +7,8 @@ * published by the Free Software Foundation. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/module.h> #include <linux/syscalls.h> #include <linux/skbuff.h> @@ -34,7 +36,7 @@ static int __bpf_mt_check_bytecode(struct sock_filter *insns, __u16 len, program.filter = insns; if (bpf_prog_create(ret, &program)) { - pr_info("bpf: check failed: parse error\n"); + pr_info_ratelimited("check failed: parse error\n"); return -EINVAL; } |