Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c0f6d996 authored by Trishansh Bhardwaj's avatar Trishansh Bhardwaj
Browse files

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: default avatarTrishansh Bhardwaj <tbhardwa@codeaurora.org>
parent a312b5ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment