summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-08-23 18:18:33 +0200
committerPhil Sutter <phil@nwl.cc>2019-09-23 13:03:56 +0200
commitb29068b49d32a0a8667409e69de628400593588c (patch)
tree473cefa8ae12aa7e0b24e558f63d0a7eb52f6c1e /iptables
parent77d7191ebeed4a84dbe78ea1f5371a81e8132f19 (diff)
DEBUG: Print to stderr to not disturb iptables-save
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>
Diffstat (limited to 'iptables')
-rw-r--r--iptables/xshared.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h
index fd1f96ba..b08c700e 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -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