diff options
-rw-r--r-- | kern/task.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 [<task_name>]", + "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); |