From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH 3/4] examples: remove useless debug flags Date: Thu, 28 Apr 2016 13:15:13 -0700 Message-ID: <20160428201513.GA5641@yliu-dev.sh.intel.com> References: <1461332640-24273-1-git-send-email-thomas.monjalon@6wind.com> <1461332640-24273-4-git-send-email-thomas.monjalon@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 257175598 for ; Thu, 28 Apr 2016 22:15:07 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1461332640-24273-4-git-send-email-thomas.monjalon@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Apr 22, 2016 at 03:43:59PM +0200, Thomas Monjalon wrote: > The debug logs must be enabled at compile-time and run-time. > There are also some internal flags in some examples to enable the debug > logs of the applications. They are now enabled in debug configs and > can be disabled thanks to the more generic logtype mechanism: > rte_set_log_type(RTE_LOGTYPE_USER1, 0); > > Removing these #ifdef allows to test these code branches more easily > and avoid dead code pitfalls. > > Signed-off-by: Thomas Monjalon > --- > examples/distributor/main.c | 19 ++---- > examples/ipsec-secgw/esp.c | 14 ++-- > examples/ipsec-secgw/ipsec.c | 6 +- > examples/ipsec-secgw/ipsec.h | 3 - > examples/l3fwd-acl/main.c | 3 + > examples/packet_ordering/main.c | 18 ++--- > examples/tep_termination/main.c | 7 +- > examples/tep_termination/main.h | 8 --- > examples/vhost/main.c | 143 +++++++++++++++++++++------------------- > examples/vhost/main.h | 12 ---- > examples/vhost_xen/main.c | 62 +++++++---------- > examples/vhost_xen/main.h | 11 ---- For the vhost example part, Acked-by: Yuanhan Liu --yliu