summaryrefslogtreecommitdiff
path: root/kern/task.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-04-29 21:52:54 +0200
committerRichard Braun <rbraun@sceen.net>2017-04-29 21:52:54 +0200
commitd78a948f0a1d8b7b3385944c736d7cffd8ca67a7 (patch)
tree73f5b4b37b73311d768670f1838688dd4505d47a /kern/task.c
parent6ba94ce79c8477758dd440d3563ffd4dd88883df (diff)
kern/printk: rename to printf
The printk functions are close enough to the printf ones to bear the same names.
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 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),