log: add function to retrieve log level
authorMatthew Hall <mhall@mhcomputing.net>
Sun, 14 Sep 2014 08:34:46 +0000 (01:34 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 18 Sep 2014 13:26:55 +0000 (15:26 +0200)
commite9703de76c75fb6ce0c63593724228d945a90c46
treec6eba72096df40707238a3b7bc5d560a98c150eb
parentd6c841e80bcc8d6a35a061fb1e5faad6a157dd35
log: add function to retrieve log level

It is helpful when you want outside code to cooperate with and respect
log levels set in DPDK. Then you can avoid using duplicate incompatible
log code in the DPDK and non-DPDK parts of the app.

Signed-off-by: Matthew Hall <mhall@mhcomputing.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
[Thomas: add void to fix function signature]
lib/librte_eal/common/eal_common_log.c
lib/librte_eal/common/include/rte_log.h