summaryrefslogtreecommitdiff
path: root/vm/vm_page.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 /vm/vm_page.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 'vm/vm_page.h')
-rw-r--r--vm/vm_page.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/vm_page.h b/vm/vm_page.h
index 4f2aaf93..7865d16a 100644
--- a/vm/vm_page.h
+++ b/vm/vm_page.h
@@ -33,6 +33,7 @@
#include <kern/atomic.h>
#include <kern/init.h>
#include <kern/list.h>
+#include <kern/log.h>
#include <kern/log2.h>
#include <kern/macros.h>
#include <machine/page.h>
@@ -230,7 +231,7 @@ const char * vm_page_zone_name(unsigned int zone_index);
/*
* Log information about physical pages.
*/
-void vm_page_log_info(void);
+void vm_page_info(log_print_fn_t print_fn);
static inline bool
vm_page_referenced(const struct vm_page *page)