]> git.karo-electronics.de Git - linux-beck.git/commit
netfilter: x_tables: get rid of old and inconsistent debugging
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 3 May 2016 11:54:23 +0000 (13:54 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 5 May 2016 14:39:51 +0000 (16:39 +0200)
commitd7cdf81657776ca1aa8377fd84d02fd8774db483
tree2ddf6f0c6803f2dea4372aa18b4128624dfc5ab4
parent3b78155b1b3688dbe910fecdc3e003f431b46630
netfilter: x_tables: get rid of old and inconsistent debugging

The dprintf() and duprintf() functions are enabled at compile time,
these days we have better runtime debugging through pr_debug() and
static keys.

On top of this, this debugging is so old that I don't expect anyone
using this anymore, so let's get rid of this.

IP_NF_ASSERT() is still left in place, although this needs that
NETFILTER_DEBUG is enabled, I think these assertions provide useful
context information when reading the code.

Note that ARP_NF_ASSERT() has been removed as there is no user of
this.

Kill also DEBUG_ALLOW_ALL and a couple of pr_error() and pr_debug()
spots that are inconsistently placed in the code.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c