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

Commit f8c84e51 authored by Tarun Gupta's avatar Tarun Gupta
Browse files

usb: bam: make debug_event logging to more coherent



Current event logging supports only adding debug messages to buffer,
sometimes error messages also contains useful information. Adding
error messages along with debug message in buffer will give more
clear understanding.

This change adds support for adding error logs by introducing new
macro log_event_dbg() and log_event_err(). With these logs will be
available in kernel logs and log event buffer both. Also added
another macro log_event_none() with this logs will only be added to
log_event_buffer.

Also replace previous log_event() calls with log_event_debug() calls.

To disable event_logging in buffer
echo 0 > /sys/module/usb_bam/parameters/enable_event_log

Change-Id: Ic5c0810fbe57399a77782b5a0edede8a985821e6
Signed-off-by: default avatarTarun Gupta <tarung@codeaurora.org>
parent 77813844
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