Browse Source

msm: camera: isp: Change error print into rate limit logs

Changing error logs into rate limit logs to avoid
excessive logging.

CRs-Fixed: 3522504
Change-Id: I773fbdc1ae0cc38dd7b6793381c266a47f9bc93d
Signed-off-by: Chandan Kumar Jha <[email protected]>
Chandan Kumar Jha 2 năm trước cách đây
mục cha
commit
06420c01fc

+ 1 - 1
drivers/cam_isp/cam_isp_context.c

@@ -803,7 +803,7 @@ static int __cam_isp_ctx_notify_trigger_util(
 
 	rc = ctx->ctx_crm_intf->notify_trigger(&notify);
 	if (rc)
-		CAM_ERR(CAM_ISP,
+		CAM_ERR_RATE_LIMIT(CAM_ISP,
 			"Failed to notify CRM %s on frame: %llu ctx: %u link: 0x%x last_buf_done_req: %lld rc: %d",
 			__cam_isp_ctx_crm_trigger_point_to_string(trigger_type),
 			ctx_isp->frame_id, ctx->ctx_id, ctx->link_hdl,

+ 1 - 1
drivers/cam_req_mgr/cam_req_mgr_core.c

@@ -4257,7 +4257,7 @@ static int cam_req_mgr_cb_notify_trigger(
 
 	spin_lock_bh(&link->link_state_spin_lock);
 	if (link->state < CAM_CRM_LINK_STATE_READY) {
-		CAM_WARN(CAM_CRM, "invalid link state:%d", link->state);
+		CAM_WARN_RATE_LIMIT(CAM_CRM, "invalid link state:%d", link->state);
 		spin_unlock_bh(&link->link_state_spin_lock);
 		rc = -EPERM;
 		goto end;