mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
cleanup some debug output in xous-swapper
This commit is contained in:
parent
1d19076d4b
commit
4526e04abc
1 changed files with 5 additions and 3 deletions
|
|
@ -763,7 +763,7 @@ fn main() {
|
||||||
xous::reply_and_receive_next(sid, &mut msg_opt).unwrap();
|
xous::reply_and_receive_next(sid, &mut msg_opt).unwrap();
|
||||||
let msg = msg_opt.as_mut().unwrap();
|
let msg = msg_opt.as_mut().unwrap();
|
||||||
let op: Option<Opcode> = FromPrimitive::from_usize(msg.body.id());
|
let op: Option<Opcode> = FromPrimitive::from_usize(msg.body.id());
|
||||||
log::info!("Swapper got {:x?}", op);
|
log::debug!("Swapper got {:x?}", op);
|
||||||
match op {
|
match op {
|
||||||
Some(Opcode::GarbageCollect) => {
|
Some(Opcode::GarbageCollect) => {
|
||||||
if let Some(scalar) = msg.body.scalar_message_mut() {
|
if let Some(scalar) = msg.body.scalar_message_mut() {
|
||||||
|
|
@ -787,12 +787,14 @@ fn main() {
|
||||||
Some(Opcode::WritePage) => {
|
Some(Opcode::WritePage) => {
|
||||||
let mem_msg = msg.body.memory_message().unwrap();
|
let mem_msg = msg.body.memory_message().unwrap();
|
||||||
let offset = mem_msg.offset.expect("malformed WritePage").get();
|
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}",
|
"WritePage: PID{}, offset {:x}, vaddr_buf {:x}",
|
||||||
msg.sender.pid().unwrap().get() as usize,
|
msg.sender.pid().unwrap().get() as usize,
|
||||||
offset,
|
offset,
|
||||||
mem_msg.buf.as_ptr() as usize
|
mem_msg.buf.as_ptr() as usize
|
||||||
);
|
); */
|
||||||
xous::rsyscall(xous::SysCall::SwapOp(
|
xous::rsyscall(xous::SysCall::SwapOp(
|
||||||
SwapAbi::WritePage as usize,
|
SwapAbi::WritePage as usize,
|
||||||
msg.sender.pid().unwrap().get() as usize,
|
msg.sender.pid().unwrap().get() as usize,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue