Browse Source

qcacmn: Rate limit logs in serialization API

Rate limit logs in wlan_serialization_peek_head_active_cmd_using_psoc
to prevent excessive logging

Change-Id: I25bc93754cf4fe5d56fdb67c15b79b72fcda9efd
CRs-Fixed: 2574786
Gururaj Pandurangi 5 years ago
parent
commit
85d32ab984

+ 1 - 1
umac/cmn_services/serialization/src/wlan_serialization_legacy_api.c

@@ -159,7 +159,7 @@ wlan_serialization_peek_head_active_cmd_using_psoc(
 		&ser_pdev_obj->pdev_q[SER_PDEV_QUEUE_COMP_NON_SCAN];
 	queue = &pdev_queue->active_list;
 	if (wlan_serialization_list_empty(queue)) {
-		ser_err("Empty Queue");
+		ser_debug_rl("Empty Queue");
 		goto end;
 	}
 

+ 2 - 0
umac/cmn_services/serialization/src/wlan_serialization_main_i.h

@@ -77,6 +77,8 @@
  */
 #define ser_err_rl(params...) \
 	QDF_TRACE_ERROR_RL(QDF_MODULE_ID_SERIALIZATION, params)
+#define ser_debug_rl(params...) \
+	QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_SERIALIZATION, params)
 
 /**
  * struct serialization_legacy_callback - to handle legacy serialization cb