Log messages to the serial atomically and rename arch::serial

Co-authored-by: Chuandong Li <lichuand@pku.edu.cn>
This commit is contained in:
Zhang Junyang
2024-06-29 11:54:01 +00:00
committed by Tate, Hongliang Tian
parent 6ff6db2167
commit 9e5f3123e1
7 changed files with 29 additions and 16 deletions

View File

@ -158,7 +158,7 @@ fn run_ktests(test_whitelist: Option<&[&str]>, crate_whitelist: Option<&[&str]>)
use ktest::runner::{run_ktests, KtestResult};
match run_ktests(
&crate::console::print,
&crate::console::early_print,
fn_catch_unwind,
test_whitelist.map(|s| s.iter().map(|s| s.to_string())),
crate_whitelist,