Replace from/into with get/new when necessary.
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ pub unsafe fn debugger(target_id: Option<crate::context::ContextId>) {
|
||||
for (id, context_lock) in crate::context::contexts().iter() {
|
||||
if target_id.map_or(false, |target_id| *id != target_id) { continue; }
|
||||
let context = context_lock.read();
|
||||
println!("{}: {}", (*id).into(), context.name);
|
||||
println!("{}: {}", (*id).get(), context.name);
|
||||
|
||||
// Switch to context page table to ensure syscall debug and stack dump will work
|
||||
if let Some(ref space) = context.addr_space {
|
||||
|
||||
Reference in New Issue
Block a user