summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/finsh/cmd.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c
index ee8d4c7d83..215300f20d 100644
--- a/components/finsh/cmd.c
+++ b/components/finsh/cmd.c
@@ -751,9 +751,9 @@ long list_timer(void)
maxlen = RT_NAME_MAX;
- rt_kprintf("%-*.s periodic timeout flag\n", maxlen, item_title);
+ rt_kprintf("%-*.s periodic timeout activated mode\n", maxlen, item_title);
object_split(maxlen);
- rt_kprintf(" ---------- ---------- -----------\n");
+ rt_kprintf(" ---------- ---------- ----------- ---------\n");
do
{
next = list_get_next(next, &find_arg);
@@ -781,9 +781,13 @@ long list_timer(void)
timer->init_tick,
timer->timeout_tick);
if (timer->parent.flag & RT_TIMER_FLAG_ACTIVATED)
- rt_kprintf("activated\n");
+ rt_kprintf("activated ");
else
- rt_kprintf("deactivated\n");
+ rt_kprintf("deactivated ");
+ if (timer->parent.flag & RT_TIMER_FLAG_PERIODIC)
+ rt_kprintf("periodic\n");
+ else
+ rt_kprintf("one shot\n");
}
}