diff --git a/src/debugger.rs b/src/debugger.rs index 0e137bc256c74409eb6246c93ed3abf07e1e749e..3dc6fdd2e059a3869aef9c9637c12334dfdfe297 100644 --- a/src/debugger.rs +++ b/src/debugger.rs @@ -13,7 +13,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.read()); + println!("{}: {}", (*id).into(), context.name); println!("status: {:?}", context.status); if ! context.status_reason.is_empty() { @@ -88,7 +88,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.read()); + println!("{}: {}", (*id).into(), context.name); // Switch to context page table to ensure syscall debug and stack dump will work if let Some(ref space) = context.addr_space {