diff options
Diffstat (limited to 'core/cortex-m/timer.c')
-rw-r--r-- | core/cortex-m/timer.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/cortex-m/timer.c b/core/cortex-m/timer.c index d3eaae7efb..5038706a24 100644 --- a/core/cortex-m/timer.c +++ b/core/cortex-m/timer.c @@ -188,20 +188,18 @@ void timer_print_info(void) "Deadline: 0x%016lx -> %11.6ld s from now\n" "Active timers:\n", t, deadline, deadline - t); + cflush(); + for (tskid = 0; tskid < TASK_ID_COUNT; tskid++) { if (timer_running & (1<<tskid)) { ccprintf(" Tsk %2d 0x%016lx -> %11.6ld\n", tskid, timer_deadline[tskid].val, timer_deadline[tskid].val - t); - if (in_interrupt_context()) - uart_emergency_flush(); - else - cflush(); + cflush(); } } } - static int command_wait(int argc, char **argv) { char *e; |