From d4f049637110f2794e47dd5b91dabc6afbf9b88d Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Sun, 4 Oct 2020 19:08:29 +0800 Subject: [PATCH] kernel: remove unused debug data Signed-off-by: Sean Cross --- kernel/src/main.rs | 4 ++-- kernel/src/services.rs | 2 +- kernel/src/syscall.rs | 15 ++++++--------- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/kernel/src/main.rs b/kernel/src/main.rs index 823838b71..640fb4009 100644 --- a/kernel/src/main.rs +++ b/kernel/src/main.rs @@ -142,12 +142,12 @@ pub extern "C" fn kmain() { match pid { Some(pid) => { #[cfg(feature = "debug-print")] - println!("Attempting to switch to PID {}", pid); + // println!("Attempting to switch to PID {}", pid); xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0)).expect("couldn't switch to pid"); } None => { #[cfg(feature = "debug-print")] - println!("No runnable tasks found. Entering idle state..."); + // println!("No runnable tasks found. Entering idle state..."); // Special case for testing: idle can return `false` to indicate exit if !arch::idle() { return; diff --git a/kernel/src/services.rs b/kernel/src/services.rs index 48b4c19b6..15142e013 100644 --- a/kernel/src/services.rs +++ b/kernel/src/services.rs @@ -854,7 +854,7 @@ impl SystemServices { // the list of ready contexts. new.state = match new.state { ProcessState::Setup(thread_init) => { - println!("Setting up new process..."); + // println!("Setting up new process..."); ArchProcess::setup_process(new_pid, thread_init) .expect("couldn't set up new process"); diff --git a/kernel/src/syscall.rs b/kernel/src/syscall.rs index a1fa4fbf1..943ce6c77 100644 --- a/kernel/src/syscall.rs +++ b/kernel/src/syscall.rs @@ -576,17 +576,14 @@ pub fn handle_inner(pid: PID, tid: TID, call: SysCall) -> SysCallResult { ); SWITCHTO_CALLER = Some((pid, tid)); } - println!( - "Activating process thread {} in pid {} coming from pid {} thread {}", - new_context, new_pid, pid, tid - ); + // println!( + // "Activating process thread {} in pid {} coming from pid {} thread {}", + // new_context, new_pid, pid, tid + // ); let result = ss .activate_process_thread(tid, new_pid, new_context, true) - .map(|_ctx| { - println!("switchto ({}, {})", pid, _ctx); - xous_kernel::Result::ResumeProcess - }); - println!("Done activating process thread: {:?}", result); + .map(|_ctx| xous_kernel::Result::ResumeProcess); + // println!("Done activating process thread: {:?}", result); result }), SysCall::ClaimInterrupt(no, callback, arg) => {