]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
DEBUG: Print to stderr to not disturb iptables-save
authorPhil Sutter <phil@nwl.cc>
Fri, 23 Aug 2019 16:18:33 +0000 (18:18 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 23 Sep 2019 11:03:56 +0000 (13:03 +0200)
This way there's at least a chance to get meaningful results from
testsuite with debugging being turned on.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/xshared.h

index fd1f96bad1b989a33324fc5ccaf95d312a44500c..b08c700e1d8b92c75b2a17eda61436cbf2ccf608 100644 (file)
@@ -11,7 +11,7 @@
 #include <linux/netfilter_ipv6/ip6_tables.h>
 
 #ifdef DEBUG
-#define DEBUGP(x, args...) fprintf(stdout, x, ## args)
+#define DEBUGP(x, args...) fprintf(stderr, x, ## args)
 #else
 #define DEBUGP(x, args...)
 #endif