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 <thomas.monjalon at 6wind.com> > --- > 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 <yuanhan.liu at linux.intel.com> --yliu