From ebd636d3249f429a0af7d5eb6192212f943c0b5d Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 22 Jun 2022 18:13:29 +0800 Subject: [PATCH] improve debug output on modals --- services/modals/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/modals/src/main.rs b/services/modals/src/main.rs index ff03726f8..c35c20711 100644 --- a/services/modals/src/main.rs +++ b/services/modals/src/main.rs @@ -155,8 +155,9 @@ fn wrapped_main() -> ! { loop { let mut msg = xous::receive_message(modals_sid).unwrap(); - log::debug!("message: {:?}", msg); - match FromPrimitive::from_usize(msg.body.id()) { + let opcode: Option = FromPrimitive::from_usize(msg.body.id()); + log::debug!("{:?}", opcode); + match opcode { // ------------------ EXTERNAL APIS -------------------- Some(Opcode::GetMutex) => msg_blocking_scalar_unpack!(msg, t0, t1, t2, t3, { let incoming_token = [t0 as u32, t1 as u32, t2 as u32, t3 as u32];