numam-dpdk/examples/quota_watermark/qw
Olivier Matz 5d8f0baf69 log: do not drop debug logs at compile time
Today, all logs whose level is lower than INFO are dropped at
compile-time. This prevents from enabling debug logs at runtime using
--log-level=8.

The rationale was to remove debug logs from the data path at
compile-time, avoiding a test at run-time.

This patch changes the behavior of RTE_LOG() to avoid the compile-time
optimization, and introduces the RTE_LOG_DP() macro that has the same
behavior than the previous RTE_LOG(), for the rare cases where debug
logs are in the data path.

So it is now possible to enable debug logs at run-time by just
specifying --log-level=8. Some drivers still have special compile-time
options to enable more debug log. Maintainers may consider to
remove/reduce them.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2016-12-01 18:09:13 +01:00
..
args.c remove trailing whitespaces 2014-06-11 00:29:34 +02:00
args.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
init.c examples/quota_watermark: fix memory overflow 2016-06-08 22:38:52 +02:00
init.h examples: fix whitespace 2015-06-12 11:10:10 +02:00
main.c log: do not drop debug logs at compile time 2016-12-01 18:09:13 +01:00
main.h remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00