summaryrefslogtreecommitdiff
path: root/common/usbc/usb_pd_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/usbc/usb_pd_timer.c')
-rw-r--r--common/usbc/usb_pd_timer.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/usbc/usb_pd_timer.c b/common/usbc/usb_pd_timer.c
index 0bbf06f0e4..e06de20389 100644
--- a/common/usbc/usb_pd_timer.c
+++ b/common/usbc/usb_pd_timer.c
@@ -9,6 +9,7 @@
#include "limits.h"
#include "system.h"
#include "usb_pd_timer.h"
+#include "usb_tc_sm.h"
#define MAX_PD_PORTS CONFIG_USB_PD_PORT_MAX_COUNT
#define MAX_PD_TIMERS PD_TIMER_COUNT
@@ -227,8 +228,11 @@ void pd_timer_dump(int port)
if (now < timer_expires[port][timer])
delta = timer_expires[port][timer] - now;
- ccprints("[%2d] Active: %s (%d)",
- timer, pd_timer_names[timer], (uint32_t)delta);
+ ccprints("[%2d] Active: %s (%d%s)",
+ timer, pd_timer_names[timer], (uint32_t)delta,
+ tc_event_loop_is_paused(port)
+ ? "-PAUSED"
+ : "");
} else {
ccprints("[%2d] Inactive: %s",
timer, pd_timer_names[timer]);