From 6d0b2eaaf06db1f1afe62948661164db21cdc9ff Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Tue, 26 Dec 2017 17:55:33 -0800 Subject: [PATCH] qcacld-3.0: Rate limit error logs in data path Rate limit error logs in data path to avoid watch dog bark. Change-Id: Id20f6224928c6b5e27a04daa6b9a10084ad122b9 CRs-Fixed: 2162954 --- core/hdd/src/wlan_hdd_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 5c3496b55796..f0f7a98627bd 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -183,6 +183,7 @@ static struct attribute *attrs[] = { #define HDD_OPS_INACTIVITY_TIMEOUT (120000) #define MAX_OPS_NAME_STRING_SIZE 20 +#define RATE_LIMIT_ERROR_LOG (256) static qdf_timer_t hdd_drv_ops_inactivity_timer; static struct task_struct *hdd_drv_ops_task; @@ -5682,7 +5683,8 @@ struct hdd_adapter *hdd_get_adapter_by_vdev(struct hdd_context *hdd_ctx, return adapter; } - hdd_err("vdev_id %d does not exist with host", vdev_id); + hdd_err_ratelimited(RATE_LIMIT_ERROR_LOG, + "vdev_id %d does not exist with host", vdev_id); return NULL; }