summaryrefslogtreecommitdiff
path: root/kern/task.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-09-16 20:31:35 +0200
committerRichard Braun <rbraun@sceen.net>2014-09-16 20:31:35 +0200
commit18478032a4e6b3c475a2b37227808bf5fa4a870b (patch)
tree7f505f0447d8676342320b0710161c3963c9b6ee /kern/task.c
parentc1e776e211b9f365c2f7eb66614a00621ba36dfb (diff)
kern/task: make task_info report thread states
Diffstat (limited to 'kern/task.c')
-rw-r--r--kern/task.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kern/task.c b/kern/task.c
index 76c32299..bb425901 100644
--- a/kern/task.c
+++ b/kern/task.c
@@ -136,9 +136,9 @@ task_info(struct task *task)
printk("task: name: %s, threads:\n", task->name);
list_for_each_entry(&task->threads, thread, task_node)
- printk("task: %s: %p %.2s:%02u %s\n", task->name, thread,
- thread_schedclass_to_str(thread), thread_schedprio(thread),
- thread->name);
+ printk("task: %s: %p %c %.2s:%02u %s\n", task->name, thread,
+ thread_state_to_chr(thread), thread_schedclass_to_str(thread),
+ thread_schedprio(thread), thread->name);
spinlock_unlock(&task->lock);
}