OSDN Git Service

msm: camera: isp: Rate limit certain logs
authorVenu Yeshala <vyeshala@codeaurora.org>
Sat, 18 Mar 2017 03:52:58 +0000 (09:22 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 23 Mar 2017 09:45:13 +0000 (02:45 -0700)
This will help reduce excessive logging in case of certain
error scenarios.

Change-Id: I466c05642988ab72edb77a16f9271678aeb44b74
Signed-off-by: Venu Yeshala <vyeshala@codeaurora.org>
drivers/media/platform/msm/camera_v2/isp/msm_isp47.c
drivers/media/platform/msm/camera_v2/isp/msm_isp_axi_util.c

index b351e0e..82e9bbd 100644 (file)
@@ -488,7 +488,7 @@ void msm_vfe47_process_violation_status(
                return;
        }
 
-       pr_err("%s: VFE pipeline violation status %d\n", __func__,
+       pr_err_ratelimited("%s: VFE pipeline violation status %d\n", __func__,
                violation_status);
 }
 
index 8488405..c62cd07 100644 (file)
@@ -1171,7 +1171,7 @@ void msm_isp_get_avtimer_ts(
 
        rc = avcs_core_query_timer(&avtimer_tick);
        if (rc < 0) {
-               pr_err("%s: Error: Invalid AVTimer Tick, rc=%d\n",
+               pr_err_ratelimited("%s: Error: Invalid AVTimer Tick, rc=%d\n",
                           __func__, rc);
                /* In case of error return zero AVTimer Tick Value */
                time_stamp->vt_time.tv_sec = 0;