summaryrefslogtreecommitdiff
path: root/arch/x86/machine/pmap.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-10 17:24:04 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-10 17:38:47 +0200
commitb719ffa6583447ff933fbcf21274b376133cb992 (patch)
tree4bd7aaf9767dea632a1338041f0c6fdd0624f867 /arch/x86/machine/pmap.c
parent562904ff8e2f5e40e4be76dc7c4d919a4bda05f8 (diff)
Use log functions where appropriate
Diffstat (limited to 'arch/x86/machine/pmap.c')
-rw-r--r--arch/x86/machine/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/machine/pmap.c b/arch/x86/machine/pmap.c
index 1aab9cc..0520c13 100644
--- a/arch/x86/machine/pmap.c
+++ b/arch/x86/machine/pmap.c
@@ -20,7 +20,6 @@
#include <assert.h>
#include <stddef.h>
-#include <stdio.h>
#include <string.h>
#include <kern/cpumap.h>
@@ -28,6 +27,7 @@
#include <kern/init.h>
#include <kern/kmem.h>
#include <kern/list.h>
+#include <kern/log.h>
#include <kern/macros.h>
#include <kern/mutex.h>
#include <kern/panic.h>
@@ -1162,7 +1162,7 @@ pmap_enter_local(struct pmap *pmap, uintptr_t va, phys_addr_t pa,
page = vm_page_alloc(0, VM_PAGE_SEL_DIRECTMAP, VM_PAGE_PMAP);
if (page == NULL) {
- printf("pmap: warning: page table page allocation failure\n");
+ log_warning("pmap: page table page allocation failure");
return ERROR_NOMEM;
}