Эх сурвалжийг харах

qcacmn: rate limit excessive logging in case of no data to reap

Currently, excess logging is causing a crash when there is no
data to reap.

Rate limiting the log messages to avoid the crash due to excessive
logging in case of no data to reap.

Change-Id: I175f3f1b3c0b0173f171e971494f6ffda694b4a5
CRs-Fixed: 2988147
Amit Mehta 4 жил өмнө
parent
commit
42c3f92bf4

+ 2 - 2
hif/src/ce/ce_service_srng.c

@@ -450,8 +450,8 @@ ce_completed_recv_next_nolock_srng(struct CE_state *CE_state,
 		 * as a descriptor that is not yet done.
 		 */
 		hal_get_sw_hptp(scn->hal_soc, status_ring->srng_ctx,
-				&hp, &tp);
-		hif_info("No data to reap, hp %d tp %d", hp, tp);
+				&tp, &hp);
+		hif_info_rl("No data to reap, hp %d tp %d", hp, tp);
 		status = QDF_STATUS_E_FAILURE;
 		hal_srng_access_end_reap(scn->hal_soc, status_ring->srng_ctx);
 		goto done;