Skip to content

Commit

Permalink
Enable TCPM logging to console as well as debugfs
Browse files Browse the repository at this point in the history
Signed-off-by: Alex J Lennon <[email protected]>
  • Loading branch information
ajlennon committed Dec 16, 2024
1 parent 51da2db commit be814b9
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
index 66857bdafcbe..c124e4149e5c 100644
--- a/drivers/usb/typec/tcpm/tcpm.c
+++ b/drivers/usb/typec/tcpm/tcpm.c
@@ -599,6 +599,8 @@ static void _tcpm_log(struct tcpm_port *port, const char *fmt, va_list args)
u64 ts_nsec = local_clock();
unsigned long rem_nsec;

+ vprintk(fmt, args);
+
mutex_lock(&port->logbuffer_lock);
if (!port->logbuffer[port->logbuffer_head]) {
port->logbuffer[port->logbuffer_head] =

0 comments on commit be814b9

Please sign in to comment.