summaryrefslogtreecommitdiff
path: root/kern/task.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2019-05-22 21:59:19 +0200
committerRichard Braun <rbraun@sceen.net>2019-05-22 21:59:19 +0200
commit5bc2263b54a89e28dd5092c807a86cd3c078e4d3 (patch)
treead399e98a6d46bad25543a4f8680335f3abb1bf8 /kern/task.h
parentc45d94a590d778c26dc78386c41231fed9df1b14 (diff)
Add a log print function type for information reporting
This type allows the use of either printf-based or log-based functions when reporting information.
Diffstat (limited to 'kern/task.h')
-rw-r--r--kern/task.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/task.h b/kern/task.h
index 12e29ac8..d4f84c5c 100644
--- a/kern/task.h
+++ b/kern/task.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012 Richard Braun.
+ * Copyright (c) 2012-2019 Richard Braun.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,6 +21,7 @@
#include <kern/atomic.h>
#include <kern/init.h>
#include <kern/list.h>
+#include <kern/log.h>
#include <kern/spinlock.h>
#include <kern/thread.h>
#include <vm/vm_map.h>
@@ -116,7 +117,7 @@ struct thread * task_lookup_thread(struct task *task, const char *name);
*
* If task is NULL, this function displays all tasks.
*/
-void task_info(struct task *task);
+void task_info(struct task *task, log_print_fn_t print_fn);
/*
* This init operation provides :