Minor error logging throttle
When the path for the accelerometer "/dev/cros-ec-accel/" is inaccessible this error reporting will spam the log many times per second. Here we simply add a backoff to throttle how often this logging will occur. The reason for the inaccessibility of this path is likely due to incorrect group setting. Some dev-only specific changes may be required to the file below in order to apply these group settings in a dev/debug specific context. https://source.corp.google.com/chromeos_public/src/third_party/ chromiumos-overlay/chromeos-base/chromeos-accelerometer-init/ files/udev/99-cros-ec-accel.rules?q=mems_setup&ss= piper%2FGoogle%2Fchromeos_public:src%2F&start=31 Change-Id: I12ad7d27e5710c86292ca08dee0f5680a2ddb153 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2563700Reviewed-by:Xiaoqian Dai <xdai@chromium.org> Commit-Queue: Peter McNeeley <petermcneeley@chromium.org> Cr-Commit-Position: refs/heads/master@{#831936}
Showing
Please register or sign in to comment