From 9dec3deb955f3e563987b94766f4a9465a81d99d Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sat, 10 Jun 2017 19:17:42 +0200 Subject: kern/task: minor shell improvements --- kern/task.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kern/task.c') diff --git a/kern/task.c b/kern/task.c index 0b5217ee..d9c9f115 100644 --- a/kern/task.c +++ b/kern/task.c @@ -93,7 +93,8 @@ error: static struct shell_cmd task_shell_cmds[] = { SHELL_CMD_INITIALIZER("task_info", task_shell_info, - "task_info", "print all tasks and threads"), + "task_info []", + "print tasks and threads"), }; void __init @@ -213,7 +214,7 @@ task_info(struct task *task) spinlock_lock(&task_list_lock); list_for_each_entry(&task_list, task, node) { - printf("task: %s\n", task->name); + task_info(task); } spinlock_unlock(&task_list_lock); -- cgit v1.2.3