From 78b9d438037f2c83a7bbb73eb1b86cc295967905 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 2 Aug 2018 17:05:15 +0200 Subject: Consolidate DEBUGP macros This debug printing macro was defined in various places, always identical. Move it into xshared.h and drop it from sources including that header. There are a few exceptions: * iptables-xml.c did not include xshared.h, which this patch changes. * Sources in extensions and libiptc mostly left alone since they don't include xshared.h (and maybe shouldn't). Only libxt_set.h does, so it's converted, too. This also converts DEBUG define use in libip6t_hbh.c to avoid a compiler warning. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/nft-shared.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'iptables/nft-shared.h') diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index 882f60e8..5ef17a08 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -11,12 +11,9 @@ #include "xshared.h" -#if 0 -#define DEBUGP(x, args...) fprintf(stdout, x, ## args) +#ifdef DEBUG #define NLDEBUG #define DEBUG_DEL -#else -#define DEBUGP(x, args...) #endif /* -- cgit v1.2.3