From fda82bceef2b644425bae12a139bf21d45373e07 Mon Sep 17 00:00:00 2001 From: Paul Chambers Date: Wed, 2 Oct 2019 13:08:22 -0700 Subject: [PATCH] remove lingering debug stuff, add my name to file headers --- miniupnpd/netfilter_nft/nftnlrdr.c | 1 + miniupnpd/netfilter_nft/nftnlrdr.h | 1 + miniupnpd/netfilter_nft/nftnlrdr_misc.c | 6 +++--- miniupnpd/netfilter_nft/nftnlrdr_misc.h | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/miniupnpd/netfilter_nft/nftnlrdr.c b/miniupnpd/netfilter_nft/nftnlrdr.c index 3042d3f..2b9de90 100644 --- a/miniupnpd/netfilter_nft/nftnlrdr.c +++ b/miniupnpd/netfilter_nft/nftnlrdr.c @@ -3,6 +3,7 @@ * MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2015 Tomofumi Hayashi + * (c) 2019 Paul Chambers * * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution. diff --git a/miniupnpd/netfilter_nft/nftnlrdr.h b/miniupnpd/netfilter_nft/nftnlrdr.h index a8076b9..ee74586 100644 --- a/miniupnpd/netfilter_nft/nftnlrdr.h +++ b/miniupnpd/netfilter_nft/nftnlrdr.h @@ -2,6 +2,7 @@ * MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2015 Tomofumi Hayashi + * (c) 2019 Paul Chambers * * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution. diff --git a/miniupnpd/netfilter_nft/nftnlrdr_misc.c b/miniupnpd/netfilter_nft/nftnlrdr_misc.c index 8b3e3c2..0633fea 100644 --- a/miniupnpd/netfilter_nft/nftnlrdr_misc.c +++ b/miniupnpd/netfilter_nft/nftnlrdr_misc.c @@ -4,6 +4,7 @@ * http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/ * (c) 2015 Tomofumi Hayashi * (c) 2019 Thomas Bernard + * (c) 2019 Paul Chambers * * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution. @@ -41,7 +42,6 @@ #include "nftnlrdr_misc.h" #include "../macros.h" -#define DEBUG 1 #ifdef DEBUG #define d_printf(x) do { printf x; } while (0) @@ -1308,7 +1308,7 @@ table_op( enum nf_tables_msg_types op, uint16_t family, const char * name) struct nftnl_table *table; - log_error("(%d, %d, %s)", op, family, name); + // log_debug("(%d, %d, %s)", op, family, name); table = nftnl_table_alloc(); if (table == NULL) { @@ -1347,7 +1347,7 @@ chain_op(enum nf_tables_msg_types op, uint16_t family, const char * table, struct nftnl_chain *chain; - log_error("(%d, %d, %s, %s, %s, %d, %d)", op, family, table, name, type, hooknum, priority); + // log_debug("(%d, %d, %s, %s, %s, %d, %d)", op, family, table, name, type, hooknum, priority); chain = nftnl_chain_alloc(); if (chain == NULL) { diff --git a/miniupnpd/netfilter_nft/nftnlrdr_misc.h b/miniupnpd/netfilter_nft/nftnlrdr_misc.h index b3e9141..400ee13 100644 --- a/miniupnpd/netfilter_nft/nftnlrdr_misc.h +++ b/miniupnpd/netfilter_nft/nftnlrdr_misc.h @@ -2,7 +2,8 @@ * MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2015 Tomofumi Hayashi - * + * (c) 2019 Paul Chambers + * * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution. */