瀏覽代碼

msm: camera: common: rate limit error log and enable few warning logs

Rate limit the error log which is printed while SOF/EOF notification
to CRM fails to avoid excessive logging. Change few failure log
prints from CAM_DBG to CAM_WARN_RATE_LIMIT to identify the exact
cause of the error.

CRs-Fixed: 3467116
Change-Id: I4257ae17adc1e8a82f1ef39c2473089412193f52
Signed-off-by: Nirmal Abraham <[email protected]>
(cherry picked from commit 6f7c3ec4cfd4483bdea78bb666a05fa2d61c07d7)
Nirmal Abraham 2 年之前
父節點
當前提交
e240a5a52a
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      drivers/cam_req_mgr/cam_req_mgr_core.c
  2. 1 1
      drivers/cam_req_mgr/cam_req_mgr_workq.c

+ 1 - 1
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -4237,7 +4237,7 @@ static int cam_req_mgr_cb_notify_trigger(
 
 	link = cam_get_link_priv(trigger_data->link_hdl);
 	if (!link) {
-		CAM_DBG(CAM_CRM, "link ptr NULL %x", trigger_data->link_hdl);
+		CAM_WARN_RATE_LIMIT(CAM_CRM, "link ptr NULL %x", trigger_data->link_hdl);
 		rc = -EINVAL;
 		goto end;
 	}

+ 1 - 1
drivers/cam_req_mgr/cam_req_mgr_workq.c

@@ -157,7 +157,7 @@ int cam_req_mgr_workq_enqueue_task(struct crm_workq_task *task,
 	}
 	workq = (struct cam_req_mgr_core_workq *)task->parent;
 	if (!workq) {
-		CAM_DBG(CAM_CRM, "NULL workq pointer suspect mem corruption");
+		CAM_WARN_RATE_LIMIT(CAM_CRM, "NULL workq pointer suspect mem corruption");
 		return -EINVAL;
 	}