From fa23cfa88b295b01807ce7e47e2a401059826bc8 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 4 Oct 2020 18:28:29 +0800 Subject: [PATCH] kernel: services: update some debug comments Signed-off-by: Sean Cross --- kernel/src/services.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/src/services.rs b/kernel/src/services.rs index dd64ed2e7..48b4c19b6 100644 --- a/kernel/src/services.rs +++ b/kernel/src/services.rs @@ -785,17 +785,17 @@ impl SystemServices { mut new_tid: TID, can_resume: bool, ) -> Result { - // println!("Activating PID {}, context {}", new_pid, new_tid); let previous_pid = self.current_pid(); // println!( - // "KERNEL({}): Activating process {} thread {}", - // previous_pid, new_pid, new_tid + // "KERNEL({},{}): Activating process {} thread {}", + // previous_pid, previous_tid, new_pid, new_tid // ); // Save state if the PID has changed. This will activate the new memory // space. if new_pid != previous_pid { let new = self.get_process_mut(new_pid)?; + // println!("New state: {:?}", new.state); // Ensure the new process can be run. match new.state { @@ -830,7 +830,7 @@ impl SystemServices { return Err(xous_kernel::Error::ProcessNotFound); } } - // println!(" -- picked context {}", new_context); + // println!(" -- picked thread {}", new_tid); } else if x & (1 << new_tid) == 0 { println!( "thread is {:?}, which is not valid for new thread {}",