From ee8f5dbf4b8521d21dec9133440272952076bf98 Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Tue, 18 Jul 2017 13:49:09 -0700 Subject: [PATCH] qcacmn: Utils: Reduce the log spam in kmsg Move the logs to appropriate log levels to reduce the log spam in kmsg. Change-Id: I27ca212113513b15f159aa26da67e03bd3a73a9a CRs-Fixed: 2017427 --- utils/logging/src/wlan_logging_sock_svc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/logging/src/wlan_logging_sock_svc.c b/utils/logging/src/wlan_logging_sock_svc.c index 30b3f7099bc9..6285d550b61b 100644 --- a/utils/logging/src/wlan_logging_sock_svc.c +++ b/utils/logging/src/wlan_logging_sock_svc.c @@ -713,7 +713,7 @@ static void send_flush_completion_to_user(void) &indicator, &reason_code, &recovery_needed); /* Error on purpose, so that it will get logged in the kmsg */ - LOGGING_TRACE(QDF_TRACE_LEVEL_ERROR, + LOGGING_TRACE(QDF_TRACE_LEVEL_DEBUG, "%s: Sending flush done to userspace", __func__); wlan_report_log_completion(is_fatal, indicator, reason_code); @@ -1301,7 +1301,7 @@ static void send_packetdump_monitor(uint8_t type) pd_hdr.type = type; - LOGGING_TRACE(QDF_TRACE_LEVEL_INFO, + LOGGING_TRACE(QDF_TRACE_LEVEL_DEBUG, "fate Tx-Rx %s: type: %d", __func__, type); wlan_pkt_stats_to_logger_thread(&pktlog_hdr, &pd_hdr, NULL); @@ -1328,7 +1328,7 @@ void wlan_deregister_txrx_packetdump(void) gtx_count = 0; grx_count = 0; } else - LOGGING_TRACE(QDF_TRACE_LEVEL_INFO, + LOGGING_TRACE(QDF_TRACE_LEVEL_DEBUG, "%s: deregistered packetdump already", __func__); } @@ -1347,7 +1347,7 @@ static bool check_txrx_packetdump_count(void) { if (gtx_count == MAX_NUM_PKT_LOG || grx_count == MAX_NUM_PKT_LOG) { - LOGGING_TRACE(QDF_TRACE_LEVEL_INFO, + LOGGING_TRACE(QDF_TRACE_LEVEL_DEBUG, "%s gtx_count: %d grx_count: %d deregister packetdump", __func__, gtx_count, grx_count); wlan_deregister_txrx_packetdump();