mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
qcacmn: Enable FATAL/ERROR/WARN/INFO log levels to console
Enable FATAL/ERROR/WARN/INFO log levels to console. Change-Id: I54ea83ded49fcb2f1e8e1c13973ee8035dc9ce5d CRs-Fixed: 2017427
This commit is contained in:
parent
ee8f5dbf4b
commit
43fa6527d4
1 changed files with 7 additions and 2 deletions
|
|
@ -57,6 +57,12 @@
|
|||
|
||||
#define MAX_NUM_PKT_LOG 32
|
||||
|
||||
#define ALLOWED_LOG_LEVELS_TO_CONSOLE(level) \
|
||||
((QDF_TRACE_LEVEL_FATAL == (level)) || \
|
||||
(QDF_TRACE_LEVEL_ERROR == (level)) || \
|
||||
(QDF_TRACE_LEVEL_WARN == (level)) || \
|
||||
(QDF_TRACE_LEVEL_INFO == (level)))
|
||||
|
||||
/**
|
||||
* struct tx_status - tx status
|
||||
* @tx_status_ok: successfully sent + acked
|
||||
|
|
@ -407,8 +413,7 @@ int wlan_log_to_user(QDF_TRACE_LEVEL log_level, char *to_be_sent, int length)
|
|||
}
|
||||
|
||||
if (gwlan_logging.log_to_console
|
||||
&& ((QDF_TRACE_LEVEL_FATAL == log_level)
|
||||
|| (QDF_TRACE_LEVEL_ERROR == log_level))) {
|
||||
&& ALLOWED_LOG_LEVELS_TO_CONSOLE(log_level)) {
|
||||
print_to_console(tbuf, to_be_sent);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue