msm: camera: Improves logging infrastructure
Defines new macros
CAM_INFO_RATE_LIMIT_CUSTOM
CAM_ERR_RATE_LIMIT_CUSTOM
These macros ratelimits logs with provided interval and burst.
Function cam_sync_get_obj_ref is called from CAM_SYNC_SIGNAL ioctl. If
userspace frequently calls this function with invalid sync id, then error
log can cause excessive loging.
Ratelimit log to 5 times in 1 second.
Change-Id: Id362f7b2025b7d6be88b054b0bacb4134b6a5952
Signed-off-by:
Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Loading
Please register or sign in to comment