From 25824df335673d41a87a240bc6a0a099cbc4b38a Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 30 Aug 2020 00:36:11 +0800 Subject: [PATCH] kernel: services: print fewer diagnostic messages These were printed a lot, which is not a thing we want right now. Signed-off-by: Sean Cross --- kernel/src/services.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/kernel/src/services.rs b/kernel/src/services.rs index 25a970f4e..d11da2ff1 100644 --- a/kernel/src/services.rs +++ b/kernel/src/services.rs @@ -411,7 +411,7 @@ impl SystemServices { let mut current = self .get_process_mut(current_pid) .expect("couldn't get current PID"); - println!("Finishing callback in PID {}", current_pid); + // println!("Finishing callback in PID {}", current_pid); current.state = match current.state { ProcessState::Running(0) => ProcessState::Sleeping, ProcessState::Running(x) => ProcessState::Ready(x), @@ -484,7 +484,7 @@ impl SystemServices { } y => panic!("current process was {:?}, not 'Running(_)'", y), }; - println!("Making PID {} state {:?}", current_pid, current.state); + // println!("Making PID {} state {:?}", current_pid, current.state); } // Get the new process, and ensure that it is in a state where it's fit @@ -786,10 +786,10 @@ impl SystemServices { ) -> 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 - ); + // println!( + // "KERNEL({}): Activating process {} thread {}", + // previous_pid, new_pid, new_tid + // ); // Save state if the PID has changed. This will activate the new memory // space. @@ -905,10 +905,10 @@ impl SystemServices { // previous.current_thread = 0; // } // } - println!( - "Set previous process PID {} state to {:?} (with can_resume = {})", - previous_pid, previous.state, can_resume - ); + // println!( + // "Set previous process PID {} state to {:?} (with can_resume = {})", + // previous_pid, previous.state, can_resume + // ); } else { // if self.current_thread(previous_pid) == new_tid { // if !can_resume {