diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-05-13 13:00:20 (GMT) |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-05-13 13:00:20 (GMT) |
commit | af5676039a9479e6ff42c6aab9fac1149ac9597f (patch) | |
tree | 23286e7ee0f2fd28ba267e7488367ee84fd83322 /net/ipv6/netfilter/ip6_tables.c | |
parent | e94c67436efa22af7d8b7d19c885863246042543 (diff) | |
download | linux-fsl-qoriq-af5676039a9479e6ff42c6aab9fac1149ac9597f.tar.xz |
netfilter: change NF_ASSERT to WARN_ON
Change netfilter asserts to standard WARN_ON. This has the
benefit of backtrace info and also causes netfilter errors
to show up on kerneloops.org.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv6/netfilter/ip6_tables.c')
-rw-r--r-- | net/ipv6/netfilter/ip6_tables.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 5678233..02a7db0 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c @@ -52,12 +52,7 @@ MODULE_DESCRIPTION("IPv6 packet filter"); #endif #ifdef CONFIG_NETFILTER_DEBUG -#define IP_NF_ASSERT(x) \ -do { \ - if (!(x)) \ - printk("IP_NF_ASSERT: %s:%s:%u\n", \ - __func__, __FILE__, __LINE__); \ -} while(0) +#define IP_NF_ASSERT(x) WARN_ON(!(x)) #else #define IP_NF_ASSERT(x) #endif |