mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
qcacmn: Add compilation flag for enter/exit macros
Map all enter/exit log macros to enter/exit QDF TRACE macro to provide option to compile out enter/exit logs if required Change-Id: I913ef0fb2486fde6b2ec4dfe8465884ca4d66ce4 CRs-Fixed: 2274857
This commit is contained in:
parent
4b47f374dc
commit
87668f872b
5 changed files with 29 additions and 15 deletions
|
|
@ -152,6 +152,20 @@ static inline void __qdf_trace_noop(QDF_MODULE_ID module, char *format, ...) { }
|
|||
#define QDF_TRACE_DEBUG_RL(params...) __qdf_trace_noop(params)
|
||||
#endif
|
||||
|
||||
#ifdef WLAN_LOG_ENTER
|
||||
#define QDF_TRACE_ENTER(params...) \
|
||||
__QDF_TRACE_FL(QDF_TRACE_LEVEL_DEBUG, ## params)
|
||||
#else
|
||||
#define QDF_TRACE_ENTER(params...) __qdf_trace_noop(params)
|
||||
#endif
|
||||
|
||||
#ifdef WLAN_LOG_EXIT
|
||||
#define QDF_TRACE_EXIT(params...) \
|
||||
__QDF_TRACE_FL(QDF_TRACE_LEVEL_DEBUG, ## params)
|
||||
#else
|
||||
#define QDF_TRACE_EXIT(params...) __qdf_trace_noop(params)
|
||||
#endif
|
||||
|
||||
#define QDF_ENABLE_TRACING
|
||||
#define qdf_scnprintf scnprintf
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue