From 4526e04abc269161fe5b0a05a18d3808692e483e Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 21 May 2025 18:21:41 +0800 Subject: [PATCH] cleanup some debug output in xous-swapper --- services/xous-swapper/src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/services/xous-swapper/src/main.rs b/services/xous-swapper/src/main.rs index f2c2cf49f..513c5bff6 100644 --- a/services/xous-swapper/src/main.rs +++ b/services/xous-swapper/src/main.rs @@ -763,7 +763,7 @@ fn main() { xous::reply_and_receive_next(sid, &mut msg_opt).unwrap(); let msg = msg_opt.as_mut().unwrap(); let op: Option = FromPrimitive::from_usize(msg.body.id()); - log::info!("Swapper got {:x?}", op); + log::debug!("Swapper got {:x?}", op); match op { Some(Opcode::GarbageCollect) => { if let Some(scalar) = msg.body.scalar_message_mut() { @@ -787,12 +787,14 @@ fn main() { Some(Opcode::WritePage) => { let mem_msg = msg.body.memory_message().unwrap(); let offset = mem_msg.offset.expect("malformed WritePage").get(); - log::info!( + // eliminate the code path entirely to speed things up a bit + /* + log::debug!( "WritePage: PID{}, offset {:x}, vaddr_buf {:x}", msg.sender.pid().unwrap().get() as usize, offset, mem_msg.buf.as_ptr() as usize - ); + ); */ xous::rsyscall(xous::SysCall::SwapOp( SwapAbi::WritePage as usize, msg.sender.pid().unwrap().get() as usize,