summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_xcall.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test_xcall.c b/test/test_xcall.c
index 4d548fd3..6de73a00 100644
--- a/test/test_xcall.c
+++ b/test/test_xcall.c
@@ -27,6 +27,7 @@
#include <kern/error.h>
#include <kern/cpumap.h>
+#include <kern/log.h>
#include <kern/panic.h>
#include <kern/thread.h>
#include <kern/xcall.h>
@@ -47,7 +48,7 @@ test_fn(void *arg)
panic("invalid cpu");
}
- printf("function called, running on cpu%u\n", cpu_id());
+ log_info("function called, running on cpu%u\n", cpu_id());
test_done = true;
}
@@ -56,7 +57,7 @@ test_once(unsigned int cpu)
{
test_done = false;
- printf("cross-call: cpu%u -> cpu%u:\n", cpu_id(), cpu);
+ log_info("cross-call: cpu%u -> cpu%u:\n", cpu_id(), cpu);
xcall_call(test_fn, (void *)(uintptr_t)cpu, cpu);
if (!test_done) {
@@ -101,7 +102,7 @@ test_run(void *arg)
cpumap_destroy(cpumap);
- printf("done\n");
+ log_info("done\n");
}
void