mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
qcacmn: Map all module logs to per-level log APIs
Map all module level log APIs to per-level log APIs to compile out specific log level if required. Change-Id: I4072b6740cb43200fd95c40943b66e1d5f8f1847 CRs-Fixed: 2266719
This commit is contained in:
parent
5902dfd254
commit
a175314c51
18 changed files with 188 additions and 268 deletions
|
|
@ -33,25 +33,19 @@
|
|||
/* ASCII "TGT\0" */
|
||||
#define TGT_MAGIC 0x54575400
|
||||
|
||||
#define target_if_log(level, args...) \
|
||||
QDF_TRACE(QDF_MODULE_ID_TARGET_IF, level, ## args)
|
||||
#define target_if_logfl(level, format, args...) \
|
||||
target_if_log(level, FL(format), ## args)
|
||||
|
||||
#define target_if_fatal(format, args...) \
|
||||
target_if_logfl(QDF_TRACE_LEVEL_FATAL, format, ## args)
|
||||
#define target_if_err(format, args...) \
|
||||
target_if_logfl(QDF_TRACE_LEVEL_ERROR, format, ## args)
|
||||
#define target_if_warn(format, args...) \
|
||||
target_if_logfl(QDF_TRACE_LEVEL_WARN, format, ## args)
|
||||
#define target_if_info(format, args...) \
|
||||
target_if_logfl(QDF_TRACE_LEVEL_INFO, format, ## args)
|
||||
#define target_if_debug(format, args...) \
|
||||
target_if_logfl(QDF_TRACE_LEVEL_DEBUG, format, ## args)
|
||||
|
||||
#define TARGET_IF_ENTER() target_if_logfl(QDF_TRACE_LEVEL_DEBUG, "enter")
|
||||
#define TARGET_IF_EXIT() target_if_logfl(QDF_TRACE_LEVEL_DEBUG, "exit")
|
||||
#define target_if_fatal(params...) \
|
||||
QDF_TRACE_FATAL(QDF_MODULE_ID_TARGET_IF, params)
|
||||
#define target_if_err(params...) \
|
||||
QDF_TRACE_ERROR(QDF_MODULE_ID_TARGET_IF, params)
|
||||
#define target_if_warn(params...) \
|
||||
QDF_TRACE_WARN(QDF_MODULE_ID_TARGET_IF, params)
|
||||
#define target_if_info(params...) \
|
||||
QDF_TRACE_INFO(QDF_MODULE_ID_TARGET_IF, params)
|
||||
#define target_if_debug(params...) \
|
||||
QDF_TRACE_DEBUG(QDF_MODULE_ID_TARGET_IF, params)
|
||||
|
||||
#define TARGET_IF_ENTER() target_if_debug("enter")
|
||||
#define TARGET_IF_EXIT() target_if_debug("exit")
|
||||
|
||||
#ifdef CONFIG_MCL
|
||||
#define TARGET_TYPE_AR900B 9 /* Beeliner */
|
||||
|
|
|
|||
|
|
@ -22,26 +22,22 @@
|
|||
#include "qdf_nbuf.h"
|
||||
#include "qdf_atomic.h"
|
||||
|
||||
#define direct_buf_rx_log(level, args...) \
|
||||
QDF_TRACE(QDF_MODULE_ID_DIRECT_BUF_RX, level, ## args)
|
||||
#define direct_buf_rx_logfl(level, format, args...) \
|
||||
direct_buf_rx_log(level, FL(format), ## args)
|
||||
#define direct_buf_alert(format, args...) \
|
||||
direct_buf_rx_logfl(QDF_TRACE_LEVEL_FATAL, format, ## args)
|
||||
#define direct_buf_rx_err(format, args...) \
|
||||
direct_buf_rx_logfl(QDF_TRACE_LEVEL_ERROR, format, ## args)
|
||||
#define direct_buf_rx_warn(format, args...) \
|
||||
direct_buf_rx_logfl(QDF_TRACE_LEVEL_WARN, format, ## args)
|
||||
#define direct_buf_rx_notice(format, args...) \
|
||||
direct_buf_rx_logfl(QDF_TRACE_LEVEL_INFO, format, ## args)
|
||||
#define direct_buf_rx_info(format, args...) \
|
||||
direct_buf_rx_logfl(QDF_TRACE_LEVEL_INFO_HIGH, format, ## args)
|
||||
#define direct_buf_rx_debug(format, args...) \
|
||||
direct_buf_rx_logfl(QDF_TRACE_LEVEL_DEBUG, format, ## args)
|
||||
#define direct_buf_alert(params...) \
|
||||
QDF_TRACE_FATAL(QDF_MODULE_ID_DIRECT_BUF_RX, params)
|
||||
#define direct_buf_rx_err(params...) \
|
||||
QDF_TRACE_ERROR(QDF_MODULE_ID_DIRECT_BUF_RX, params)
|
||||
#define direct_buf_rx_warn(params...) \
|
||||
QDF_TRACE_WARN(QDF_MODULE_ID_DIRECT_BUF_RX, params)
|
||||
#define direct_buf_rx_notice(params...) \
|
||||
QDF_TRACE_INFO(QDF_MODULE_ID_DIRECT_BUF_RX, params)
|
||||
#define direct_buf_rx_info(params...) \
|
||||
QDF_TRACE_INFO(QDF_MODULE_ID_DIRECT_BUF_RX, params)
|
||||
#define direct_buf_rx_debug(params...) \
|
||||
QDF_TRACE_DEBUG(QDF_MODULE_ID_DIRECT_BUF_RX, params)
|
||||
#define direct_buf_rx_enter() \
|
||||
direct_buf_rx_logfl(QDF_TRACE_LEVEL_DEBUG, "enter")
|
||||
direct_buf_rx_debug("enter")
|
||||
#define direct_buf_rx_exit() \
|
||||
direct_buf_rx_logfl(QDF_TRACE_LEVEL_DEBUG, "exit")
|
||||
direct_buf_rx_debug("exit")
|
||||
|
||||
#define DBR_MAX_CHAINS (8)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue