summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-01-07 19:22:43 +0100
committerRichard Braun <rbraun@sceen.net>2018-01-07 19:22:43 +0100
commitdea146ea3d0bfa2c906a965bcca71d3ec6aed822 (patch)
tree05c342c5f7fd841cb73ebd9b6a1111a06c83fcf4 /test
parent00aeac15bb3a299278a3e1ed579d7e18d265aea5 (diff)
test/test_xcall: replace printf with log_info
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