summaryrefslogtreecommitdiff
path: root/test/test_pmap_update_mp.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 /test/test_pmap_update_mp.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 'test/test_pmap_update_mp.c')
-rw-r--r--test/test_pmap_update_mp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_pmap_update_mp.c b/test/test_pmap_update_mp.c
index 5f40c8ce..0c5e2dbd 100644
--- a/test/test_pmap_update_mp.c
+++ b/test/test_pmap_update_mp.c
@@ -33,7 +33,7 @@
#include <kern/mutex.h>
#include <kern/panic.h>
#include <kern/param.h>
-#include <kern/printk.h>
+#include <kern/printf.h>
#include <kern/thread.h>
#include <test/test.h>
#include <vm/vm_kmem.h>
@@ -49,12 +49,12 @@ test_run1(void *arg)
(void)arg;
- printk("allocating page\n");
+ printf("allocating page\n");
ptr = vm_kmem_alloc(PAGE_SIZE);
- printk("writing page\n");
+ printf("writing page\n");
memset(ptr, 'a', PAGE_SIZE);
- printk("passing page to second thread (%p)\n", ptr);
+ printf("passing page to second thread (%p)\n", ptr);
mutex_lock(&test_lock);
test_va = ptr;
@@ -70,7 +70,7 @@ test_run2(void *arg)
(void)arg;
- printk("waiting for page\n");
+ printf("waiting for page\n");
mutex_lock(&test_lock);
@@ -82,7 +82,7 @@ test_run2(void *arg)
mutex_unlock(&test_lock);
- printk("page received (%p), checking page\n", ptr);
+ printf("page received (%p), checking page\n", ptr);
for (i = 0; i < PAGE_SIZE; i++) {
if (ptr[i] != 'a') {
@@ -91,7 +91,7 @@ test_run2(void *arg)
}
vm_kmem_free(ptr, PAGE_SIZE);
- printk("done\n");
+ printf("done\n");
}
void