From 567fdadd45b97caff572cb92ff4ad336fed2403a Mon Sep 17 00:00:00 2001 From: Sandeep Puligilla Date: Wed, 13 Jun 2018 15:31:07 -0700 Subject: [PATCH] qcacld-3.0: Add level specific logging to PE Add per-level logging wrappers to PE module, which can be compiled in or out by the build configuration. Change-Id: Ie8ded666d1bd268a4bbc57091af32aeb5b285eb1 CRs-Fixed: 2260214 --- core/mac/src/include/sir_debug.h | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/core/mac/src/include/sir_debug.h b/core/mac/src/include/sir_debug.h index 72ed10122778..d294ae229a57 100644 --- a/core/mac/src/include/sir_debug.h +++ b/core/mac/src/include/sir_debug.h @@ -44,22 +44,12 @@ #define pe_info_rl(params...) QDF_TRACE_INFO_RL(QDF_MODULE_ID_PE, params) #define pe_debug_rl(params...) QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_PE, params) -#define pe_log(level, args...) QDF_TRACE(QDF_MODULE_ID_PE, level, ## args) -#define pe_logfl(level, format, args...) pe_log(level, FL(format), ## args) - -#define pe_alert(format, args...) \ - pe_logfl(QDF_TRACE_LEVEL_FATAL, format, ## args) -#define pe_err(format, args...) \ - pe_logfl(QDF_TRACE_LEVEL_ERROR, format, ## args) -#define pe_warn(format, args...) \ - pe_logfl(QDF_TRACE_LEVEL_WARN, format, ## args) -#define pe_info(format, args...) \ - pe_logfl(QDF_TRACE_LEVEL_INFO, format, ## args) -#define pe_debug(format, args...) \ - pe_logfl(QDF_TRACE_LEVEL_DEBUG, format, ## args) - -#define PE_ENTER() pe_logfl(QDF_TRACE_LEVEL_DEBUG, "enter") -#define PE_EXIT() pe_logfl(QDF_TRACE_LEVEL_DEBUG, "exit") - +#define pe_alert(params...) QDF_TRACE_FATAL(QDF_MODULE_ID_PE, params) +#define pe_err(params...) QDF_TRACE_ERROR(QDF_MODULE_ID_PE, params) +#define pe_warn(params...) QDF_TRACE_WARN(QDF_MODULE_ID_PE, params) +#define pe_info(params...) QDF_TRACE_INFO(QDF_MODULE_ID_PE, params) +#define pe_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_PE, params) +#define PE_ENTER() pe_debug("enter") +#define PE_EXIT() pe_debug("exit") #endif