From patchwork Thu Jul 25 09:23:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Perevalov X-Patchwork-Id: 261645 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 9C4AA2C0077 for ; Thu, 25 Jul 2013 19:24:11 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755076Ab3GYJYH (ORCPT ); Thu, 25 Jul 2013 05:24:07 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:33144 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754855Ab3GYJYD (ORCPT ); Thu, 25 Jul 2013 05:24:03 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQH00H18JD1KC50@mailout3.w1.samsung.com>; Thu, 25 Jul 2013 10:24:02 +0100 (BST) X-AuditID: cbfec7f4-b7fd76d0000035e1-b8-51f0eeb2642f Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 72.94.13793.2BEE0F15; Thu, 25 Jul 2013 10:24:02 +0100 (BST) Received: from aperevalov-ubuntu.rnd.samsung.ru ([106.109.9.222]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MQH000T9JFRKY20@eusync1.samsung.com>; Thu, 25 Jul 2013 10:24:02 +0100 (BST) From: Alexey Perevalov To: netfilter-devel@vger.kernel.org Cc: pablo@netfilter.org, netfilter@vger.kernel.org, Alexey Perevalov Subject: [PATCH 3/4] iptables: Use DEBUGP macro from trace.h Date: Thu, 25 Jul 2013 13:23:48 +0400 Message-id: <1374744229-5427-4-git-send-email-a.perevalov@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1374744229-5427-1-git-send-email-a.perevalov@samsung.com> References: <1374744229-5427-1-git-send-email-a.perevalov@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBJMWRmVeSWpSXmKPExsVy+t/xy7qb3n0INDg1QcJi7t3zLBYT1p1i sXixaR2bxfQ3V5kdWDze/j7B5NG3ZRWjx+dNcgHMUVw2Kak5mWWpRfp2CVwZx/5EFZzgrVhw 9jF7A+Mq7i5GTg4JAROJhRMXM0LYYhIX7q1n62Lk4hASWMoo8XP+PHYIZxqTxNlrF5i6GDk4 2AQMJPbdswVpEBFQlnjzrResmVkgQWLKtncsILawgI1E/5azrF2M7BwsAqoS62VAorwCbhLn 1s5mBBkiIaAgMWeSDUiYU8BdouH6JjYQWwioZMbWVWwTGHkXMDKsYhRNLU0uKE5KzzXUK07M LS7NS9dLzs/dxAgJjS87GBcfszrEKMDBqMTDG/j1faAQa2JZcWXuIUYJDmYlEd7Yig+BQrwp iZVVqUX58UWlOanFhxiZODilGhjV9r2sq7KJNA7wX7rYdoGox2P/Tsug+fofJc7PXa47T+St z73iDS1ryjM/b2mX2L86WkJzAme7rP42hpvxYqFS6YdSvxxZx8pZ9mGemVCrpcYV3qn76lsn 9zKabNyW9phpL6+B/t1l7dmcQTullmflyydHdzMolnirNEe6JH64bfrF7eSRPCWW4oxEQy3m ouJEAKG67CXrAQAA Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Signed-off-by: Alexey Perevalov --- 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 - -#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,