log: add API to check if a logtype can log in a given level
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Mar 2020 14:51:59 +0000 (14:51 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 27 Mar 2020 10:20:08 +0000 (11:20 +0100)
commit241e67bfecf11fc964711a642bb8447d5f501b12
treedf37130b1a48ae5634c6c3e708b7747c9107cccd
parent4236694f0ae466b174a73a29df4cfa94753793f0
log: add API to check if a logtype can log in a given level

This is a helper function in case components would like to do more work
than just logging a message based on log level, like for example
collecting some stats if the log type is DEBUG etc..

A few existing relevant usage converted to this new API.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Hyong Youb Kim <hyonkim@cisco.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Reviewed-by: Andrzej Ostruszka <aostruszka@marvell.com>
Acked-by: David Marchand <david.marchand@redhat.com>
drivers/bus/fslmc/fslmc_bus.c
drivers/common/qat/qat_logs.c
drivers/net/enic/enic_fm_flow.c
drivers/net/mlx5/mlx5_mr.c
lib/librte_eal/common/eal_common_log.c
lib/librte_eal/common/include/rte_log.h
lib/librte_eal/rte_eal_version.map
lib/librte_flow_classify/rte_flow_classify.c