From 3a7669bf6c6527e0f59b27aefa5733b252c87f64 Mon Sep 17 00:00:00 2001 From: Orhan K AKYILDIZ Date: Fri, 26 Jan 2018 14:48:01 -0800 Subject: [PATCH] qcacmn: Rate-limit excessive logs Customer requests some CE logs to be rate limited as logs flood the logs space. Rate-limit the logs. Change-Id: I922f5a737b967a62b557715c2d74f330fa47ca06 CRs-Fixed: 2179665 --- hif/src/ce/ce_service.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c index 625589f49b84..8cb69c933c3f 100644 --- a/hif/src/ce/ce_service.c +++ b/hif/src/ce/ce_service.c @@ -736,9 +736,10 @@ int ce_send_fast(struct CE_handle *copyeng, qdf_nbuf_t msdu, if (qdf_unlikely(CE_RING_DELTA(nentries_mask, write_index, sw_index - 1) < SLOTS_PER_DATAPATH_TX)) { - HIF_ERROR("Source ring full, required %d, available %d", - SLOTS_PER_DATAPATH_TX, - CE_RING_DELTA(nentries_mask, write_index, sw_index - 1)); + hif_err_rl("Source ring full, required %d, available %d", + SLOTS_PER_DATAPATH_TX, + CE_RING_DELTA(nentries_mask, write_index, + sw_index - 1)); OL_ATH_CE_PKT_ERROR_COUNT_INCR(scn, CE_RING_DELTA_FAIL); if (ok_to_send) Q_TARGET_ACCESS_END(scn);