summaryrefslogtreecommitdiff
path: root/core/utils/logging
diff options
context:
space:
mode:
authorSrinivas Girigowda <sgirigow@codeaurora.org>2017-03-09 16:01:07 -0800
committerSandeep Puligilla <spuligil@codeaurora.org>2017-03-10 19:32:25 -0800
commit2b3631d4e3b1d1fa24e70be3365ec53c43590ada (patch)
treeb570a931f549f514644b5409a8e774c968929610 /core/utils/logging
parent72530287e86b495bfd84c56f8f12d45c72a7242b (diff)
qcacld-3.0: Enable FATAL/ERROR/WARN/INFO log levels to console
Enable FATAL/ERROR/WARN/INFO log levels to console. Change-Id: I54ea83ded49fcb2f1e8e1c13973ee8035dc9ce5d CRs-Fixed: 2014745
Diffstat (limited to 'core/utils/logging')
-rw-r--r--core/utils/logging/src/wlan_logging_sock_svc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/utils/logging/src/wlan_logging_sock_svc.c b/core/utils/logging/src/wlan_logging_sock_svc.c
index c6b2c1289c15..581bfc630b09 100644
--- a/core/utils/logging/src/wlan_logging_sock_svc.c
+++ b/core/utils/logging/src/wlan_logging_sock_svc.c
@@ -52,6 +52,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
@@ -491,8 +497,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)) {
pr_info("%s %s\n", tbuf, to_be_sent);
}