Require UTF-8 for context name

This commit is contained in:
Jeremy Soller
2021-02-13 12:16:47 -07:00
parent b26c3e0ae9
commit a9bee0bbdc
12 changed files with 62 additions and 51 deletions
+1 -2
View File
@@ -95,8 +95,7 @@ interrupt_stack!(syscall, |stack| {
let context = contexts.current();
if let Some(current) = context {
let current = current.read();
let name = current.name.read();
println!("Warning: Context {} used deprecated `int 0x80` construct", core::str::from_utf8(&name).unwrap_or("(invalid utf8)"));
println!("Warning: Context {} used deprecated `int 0x80` construct", *current.name.read());
} else {
println!("Warning: Unknown context used deprecated `int 0x80` construct");
}