From fa5234a6024c0c40486cd031a7e60338fc4894c3 Mon Sep 17 00:00:00 2001 From: Gururaj Pandurangi Date: Tue, 29 Sep 2020 15:52:29 -0700 Subject: [PATCH] qcacld-3.0: Rate limit cp stats logs Rate limit cp stats logs to avoid excessive logging Change-Id: I3506da05a41579f727ce36cffb475f39a9afec68 CRs-Fixed: 2787218 --- components/cp_stats/dispatcher/src/wlan_cp_stats_mc_tgt_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/cp_stats/dispatcher/src/wlan_cp_stats_mc_tgt_api.c b/components/cp_stats/dispatcher/src/wlan_cp_stats_mc_tgt_api.c index cb37f41caf77..06ab24735e8f 100644 --- a/components/cp_stats/dispatcher/src/wlan_cp_stats_mc_tgt_api.c +++ b/components/cp_stats/dispatcher/src/wlan_cp_stats_mc_tgt_api.c @@ -455,7 +455,7 @@ static void tgt_mc_cp_stats_extract_peer_extd_stats( /* no matched peer */ if (!QDF_IS_ADDR_BROADCAST(last_req.peer_mac_addr) && selected == ev->num_peer_extd_stats) { - cp_stats_err("peer not found stats"); + cp_stats_rl_err("peer not found stats"); return; } } @@ -506,7 +506,7 @@ static void tgt_mc_cp_stats_extract_peer_stats(struct wlan_objmgr_psoc *psoc, /* no matched peer */ if (!QDF_IS_ADDR_BROADCAST(last_req.peer_mac_addr) && selected == ev->num_peer_stats) { - cp_stats_err("peer not found for stats"); + cp_stats_rl_err("peer not found for stats"); } extd2_stats: