From d78a948f0a1d8b7b3385944c736d7cffd8ca67a7 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Sat, 29 Apr 2017 21:52:54 +0200 Subject: kern/printk: rename to printf The printk functions are close enough to the printf ones to bear the same names. --- kern/task.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kern/task.c') diff --git a/kern/task.c b/kern/task.c index c7caeb48..d2aaa80d 100644 --- a/kern/task.c +++ b/kern/task.c @@ -131,7 +131,7 @@ task_info(struct task *task) spinlock_lock(&task_list_lock); list_for_each_entry(&task_list, task, node) { - printk("task: %s\n", task->name); + printf("task: %s\n", task->name); } spinlock_unlock(&task_list_lock); @@ -141,7 +141,7 @@ task_info(struct task *task) spinlock_lock(&task->lock); - printk("task: name: %s, threads:\n", task->name); + printf("task: name: %s, threads:\n", task->name); /* * Don't grab any lock when accessing threads, so that the function @@ -150,7 +150,7 @@ task_info(struct task *task) * so holding the task lock is enough to guarantee existence. */ list_for_each_entry(&task->threads, thread, task_node) { - printk(TASK_INFO_ADDR_FMT " %c %8s:" TASK_INFO_ADDR_FMT + printf(TASK_INFO_ADDR_FMT " %c %8s:" TASK_INFO_ADDR_FMT " %.2s:%02hu %02u %s\n", (unsigned long)thread, thread_state_to_chr(thread), -- cgit v1.2.3