diff options
author | Joe Perches <joe@perches.com> | 2015-03-23 11:50:10 -0700 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-03-25 12:09:39 +0100 |
commit | a81b2ce8508b9c57c2eae0b0ab7fc8a5e849a4b4 (patch) | |
tree | b5e4df08d5a9c742f792f1a5bc09b433fd1b0808 /net/netfilter/nft_log.c | |
parent | 5ebb335dcbe63470c88c4f80f2d571089543b638 (diff) | |
download | op-kernel-dev-a81b2ce8508b9c57c2eae0b0ab7fc8a5e849a4b4.zip op-kernel-dev-a81b2ce8508b9c57c2eae0b0ab7fc8a5e849a4b4.tar.gz |
netfilter: Use LOGLEVEL_<FOO> defines
Use the #defines where appropriate.
Miscellanea:
Add explicit #include <linux/kernel.h> where it was not
previously used so that these #defines are a bit more
explicitly defined instead of indirectly included via:
module.h->moduleparam.h->kernel.h
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_log.c')
-rw-r--r-- | net/netfilter/nft_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_log.c b/net/netfilter/nft_log.c index bde05f28..e18af9db 100644 --- a/net/netfilter/nft_log.c +++ b/net/netfilter/nft_log.c @@ -78,7 +78,7 @@ static int nft_log_init(const struct nft_ctx *ctx, li->u.log.level = ntohl(nla_get_be32(tb[NFTA_LOG_LEVEL])); } else { - li->u.log.level = 4; + li->u.log.level = LOGLEVEL_WARNING; } if (tb[NFTA_LOG_FLAGS] != NULL) { li->u.log.logflags = |