common/usbc/usb_pd_timer.c: Format with clang-format
BRANCH=none
TEST=none
Tricium: disable
#define PD_CHK_DISABLED(p, bit) \
atomic_test_bit(timer_disabled, (p)*PD_TIMER_COUNT + (bit))
-test_mockable_static
-ATOMIC_DEFINE(timer_active, PD_TIMER_COUNT * MAX_PD_PORTS);
-test_mockable_static
-ATOMIC_DEFINE(timer_disabled, PD_TIMER_COUNT * MAX_PD_PORTS);
+test_mockable_static ATOMIC_DEFINE(timer_active, PD_TIMER_COUNT *MAX_PD_PORTS);
+test_mockable_static ATOMIC_DEFINE(timer_disabled,
+ PD_TIMER_COUNT *MAX_PD_PORTS);
static uint64_t timer_expires[MAX_PD_PORTS][PD_TIMER_COUNT];
/*
@@ -253,8 +252,8 @@ test_mockable_static void pd_timer_dump(int port)
int timer;
uint64_t now = get_time().val;
- ccprints("Timers(%d): cur=%d max=%d",
- port, count[port], max_count[port]);
+ ccprints("Timers(%d): cur=%d max=%d", port, count[port],
+ max_count[port]);
for (timer = 0; timer < PD_TIMER_COUNT; ++timer) {
if (pd_timer_is_disabled(port, timer)) {
@@ -265,14 +264,13 @@ test_mockable_static void pd_timer_dump(int port)
if (now < timer_expires[port][timer])
delta = timer_expires[port][timer] - now;
- ccprints("[%2d] Active: %s (%d%s)",
- timer, pd_timer_names[timer], (uint32_t)delta,
- tc_event_loop_is_paused(port)
- ? "-PAUSED"
- : "");
+ 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]);
+ ccprints("[%2d] Inactive: %s", timer,
+ pd_timer_names[timer]);
}
}
}
