mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
qcacld-3.0: Refactor CDS logging wrappers
Refactor the CDS logging wrappers to use the new per-level logging APIs. Change-Id: I13e6d0676250348c07a3abb256d5220b48f77737 CRs-Fixed: 2249432
This commit is contained in:
parent
17c2cc2a58
commit
b309cf139a
1 changed files with 7 additions and 15 deletions
|
|
@ -65,21 +65,13 @@
|
|||
#define CDS_DBS_SCAN_CLIENTS_MAX (7)
|
||||
#define CDS_DBS_SCAN_PARAM_PER_CLIENT (3)
|
||||
|
||||
#define cds_log(level, args...) QDF_TRACE(QDF_MODULE_ID_QDF, level, ## args)
|
||||
#define cds_logfl(level, format, args...) cds_log(level, FL(format), ## args)
|
||||
#define cds_alert(params...) QDF_TRACE_FATAL(QDF_MODULE_ID_QDF, params)
|
||||
#define cds_err(params...) QDF_TRACE_ERROR(QDF_MODULE_ID_QDF, params)
|
||||
#define cds_info(params...) QDF_TRACE_INFO(QDF_MODULE_ID_QDF, params)
|
||||
#define cds_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_QDF, params)
|
||||
|
||||
#define cds_alert(format, args...) \
|
||||
cds_logfl(QDF_TRACE_LEVEL_FATAL, format, ## args)
|
||||
#define cds_err(format, args...) \
|
||||
cds_logfl(QDF_TRACE_LEVEL_ERROR, format, ## args)
|
||||
#define cds_warn(format, args...) \
|
||||
cds_logfl(QDF_TRACE_LEVEL_WARN, format, ## args)
|
||||
#define cds_notice(format, args...) \
|
||||
cds_logfl(QDF_TRACE_LEVEL_INFO, format, ## args)
|
||||
#define cds_info(format, args...) \
|
||||
cds_logfl(QDF_TRACE_LEVEL_INFO_HIGH, format, ## args)
|
||||
#define cds_debug(format, args...) \
|
||||
cds_logfl(QDF_TRACE_LEVEL_DEBUG, format, ## args)
|
||||
#define cds_enter() cds_debug("enter")
|
||||
#define cds_exit() cds_debug("exit")
|
||||
|
||||
/**
|
||||
* enum cds_band_type - Band type - 2g, 5g or all
|
||||
|
|
|
|||
Loading…
Reference in a new issue