summaryrefslogtreecommitdiff
path: root/kern/kernel.c
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/kernel.c
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/kernel.c')
-rw-r--r--kern/kernel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/kernel.c b/kern/kernel.c
index 418793d7..98184e26 100644
--- a/kern/kernel.c
+++ b/kern/kernel.c
@@ -17,6 +17,7 @@
#include <kern/init.h>
#include <kern/kernel.h>
+#include <kern/log.h>
#include <kern/thread.h>
#include <machine/cpu.h>
#include <test/test.h>
@@ -28,7 +29,7 @@ kernel_main(void)
assert(!cpu_intr_enabled());
init_setup();
- vm_page_log_info();
+ vm_page_info(log_info);
#ifdef CONFIG_TEST_MODULE
test_setup();