log: fix log level check
authorJean Dao <jean.dao@6wind.com>
Mon, 6 Apr 2015 19:14:20 +0000 (21:14 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 28 Apr 2015 14:16:30 +0000 (16:16 +0200)
commit23e4bf20a16d34b2759e8082a818bb3597dc6392
treec6c5de312f22bc865a35afbc922fe0fe1cd3dd2a
parent5c71fff64af35a4fdc02bab667c5bd702249e488
log: fix log level check

According to the api, rte_log() / rte_vlog() are supposed to check the log level
and type but they were not doing so. This check was only done in the RTE_LOG
macro while this macro is only there to remove log messages at build time.

rte_log() always calls rte_vlog(), so do the check in rte_vlog() only.

Signed-off-by: Jean Dao <jean.dao@6wind.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/common/eal_common_log.c
lib/librte_eal/common/include/rte_log.h