From 47fef3c2d05eb9de8001825efdf8d2bf081daa7b Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 24 Aug 2021 01:48:30 +0800 Subject: [PATCH] clean out debug messages and scaffolding --- services/keyboard/src/main.rs | 14 +++++++------- services/llio/src/main.rs | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/services/keyboard/src/main.rs b/services/keyboard/src/main.rs index d9493fe87..934571015 100644 --- a/services/keyboard/src/main.rs +++ b/services/keyboard/src/main.rs @@ -406,8 +406,8 @@ mod implementation { // EV_PENDING_KEYPRESSED effectively does an XOR of the previous keyboard state // to the current state, which is why update() does not repeatedly issue results // for keys that are pressed & held. - log::info!("update new_state: {:?}", self.new_state); - log::info!("update last_state: {:?}", self.last_state); + log::trace!("update new_state: {:?}", self.new_state); + log::trace!("update last_state: {:?}", self.last_state); let mut krs = KeyRawStates::new(); @@ -427,7 +427,7 @@ mod implementation { self.last_state.insert(rc); } - log::info!("krs: {:?}", krs); + log::trace!("krs: {:?}", krs); krs } @@ -849,10 +849,10 @@ fn xmain() -> ! { let mut vibe = false; let llio = llio::Llio::new(&xns).unwrap(); - { + /*{ log::warn!("kbd server is overriding WFI for debugging, remember to disable for production"); llio.wfi_override(true).unwrap(); - } + }*/ log::trace!("starting main loop"); loop { @@ -898,7 +898,7 @@ fn xmain() -> ! { } else { '\u{0000}' }; - log::info!("got inject key, listener_conn: {:?}", listener_conn); + log::trace!("got inject key, listener_conn: {:?}", listener_conn); if let Some(conn) = listener_conn { info!("injecting key '{}'", key); // always be noisy about this, it's an exploit path xous::send_message(conn, @@ -947,7 +947,7 @@ fn xmain() -> ! { } // as long as we have a keydown, keep pinging the loop at a high rate. this consumes more power, but keydowns are relatively rare. if kbd.is_repeating_key() { - log::info!("keydowns hold"); + log::trace!("keydowns hold"); // fire a second call to check if we should transition to a repeating state ticktimer.sleep_ms(kbd.get_repeat_check_interval() as _).unwrap(); kbd.poll(); diff --git a/services/llio/src/main.rs b/services/llio/src/main.rs index a944f30dd..8bd3c5441 100644 --- a/services/llio/src/main.rs +++ b/services/llio/src/main.rs @@ -289,7 +289,7 @@ mod implementation { // during a critical operation like SPINOR flashing because we swapped consoles at a bad time. Should be // very rare and only affect devs... log::warn!("unsafe re-enabling WFI -- if you issued this command at a bad time, could have side effects"); - if false { + if true { self.power_csr.rmwf(utra::power::POWER_DISABLE_WFI, 0); } else { log::warn!("sticking WFI override to 1 for keyboard debug, remove this path when done!");