summaryrefslogtreecommitdiff
path: root/examples/l3fwd-acl
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2016-04-22 12:52:20 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-05-02 15:31:17 +0200
commit1f49ec153c8f91ee34c23e58c7443eb87f566b60 (patch)
tree166e63474ba3a2dc392fec36a9ee6dcd333b54f8 /examples/l3fwd-acl
parent9b9d7caa84140ce132bc3ed515857207da3d6fc4 (diff)
downloaddpdk-1f49ec153c8f91ee34c23e58c7443eb87f566b60.zip
dpdk-1f49ec153c8f91ee34c23e58c7443eb87f566b60.tar.gz
dpdk-1f49ec153c8f91ee34c23e58c7443eb87f566b60.tar.xz
examples: remove useless debug flags
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@6wind.com> Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Diffstat (limited to 'examples/l3fwd-acl')
-rw-r--r--examples/l3fwd-acl/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/l3fwd-acl/main.c b/examples/l3fwd-acl/main.c
index 26d9f5e..c8347a2 100644
--- a/examples/l3fwd-acl/main.c
+++ b/examples/l3fwd-acl/main.c
@@ -72,6 +72,9 @@
#include <rte_string_fns.h>
#include <rte_acl.h>
+#if RTE_LOG_LEVEL >= RTE_LOG_DEBUG
+#define L3FWDACL_DEBUG
+#endif
#define DO_RFC_1812_CHECKS
#define RTE_LOGTYPE_L3FWD RTE_LOGTYPE_USER1