All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Perevalov <a.perevalov@samsung.com>
To: netfilter-devel@vger.kernel.org
Cc: pablo@netfilter.org, netfilter@vger.kernel.org,
	Alexey Perevalov <a.perevalov@samsung.com>
Subject: [PATCH 3/4] iptables: Use DEBUGP macro from trace.h
Date: Thu, 25 Jul 2013 13:23:48 +0400	[thread overview]
Message-ID: <1374744229-5427-4-git-send-email-a.perevalov@samsung.com> (raw)
In-Reply-To: <1374744229-5427-1-git-send-email-a.perevalov@samsung.com>

Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
---
 iptables/ip6tables-restore.c |    7 +------
 iptables/iptables-restore.c  |    7 +------
 iptables/iptables-xml.c      |    7 +------
 3 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/iptables/ip6tables-restore.c b/iptables/ip6tables-restore.c
index b8b9e0d..2f08640 100644
--- a/iptables/ip6tables-restore.c
+++ b/iptables/ip6tables-restore.c
@@ -18,12 +18,7 @@
 #include "xtables.h"
 #include "libiptc/libip6tc.h"
 #include "ip6tables-multi.h"
-
-#ifdef DEBUG
-#define DEBUGP(x, args...) fprintf(stderr, x, ## args)
-#else
-#define DEBUGP(x, args...)
-#endif
+#include "trace.h"
 
 static int binary = 0, counters = 0, verbose = 0, noflush = 0;
 
diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c
index 8c942ff..611049b 100644
--- a/iptables/iptables-restore.c
+++ b/iptables/iptables-restore.c
@@ -15,12 +15,7 @@
 #include "xtables.h"
 #include "libiptc/libiptc.h"
 #include "iptables-multi.h"
-
-#ifdef DEBUG
-#define DEBUGP(x, args...) fprintf(stderr, x, ## args)
-#else
-#define DEBUGP(x, args...)
-#endif
+#include "trace.h"
 
 static int binary = 0, counters = 0, verbose = 0, noflush = 0;
 
diff --git a/iptables/iptables-xml.c b/iptables/iptables-xml.c
index 4b12bd4..79eba8d 100644
--- a/iptables/iptables-xml.c
+++ b/iptables/iptables-xml.c
@@ -16,12 +16,7 @@
 #include "libiptc/libiptc.h"
 #include "xtables-multi.h"
 #include <xtables.h>
-
-#ifdef DEBUG
-#define DEBUGP(x, args...) fprintf(stderr, x, ## args)
-#else
-#define DEBUGP(x, args...)
-#endif
+#include "trace.h"
 
 struct xtables_globals iptables_xml_globals = {
 	.option_offset = 0,
-- 
1.7.9.5


  parent reply	other threads:[~2013-07-25  9:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-25  9:23 [PATCH 0/4] Generalize DEBUGP macros Alexey Perevalov
2013-07-25  9:23 ` [PATCH 1/4] iptables: Introduce header for keeping debug and trace entities Alexey Perevalov
2013-07-25  9:23 ` [PATCH 2/4] extensions: Use DEBUGP macro from trace.h Alexey Perevalov
2013-07-25  9:23 ` Alexey Perevalov [this message]
2013-07-25  9:23 ` [PATCH 4/4] libiptc: " Alexey Perevalov
2013-08-09 15:48 ` [PATCH 0/4] Generalize DEBUGP macros Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1374744229-5427-4-git-send-email-a.perevalov@samsung.com \
    --to=a.perevalov@samsung.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=netfilter@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.