mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
modernize debug output
This commit is contained in:
parent
ae4ed7ba3d
commit
b003b4f88f
1 changed files with 3 additions and 3 deletions
|
|
@ -56,7 +56,6 @@ fn wrapped_main() -> ! {
|
||||||
// unlimited connections allowed; this is a gateway server
|
// unlimited connections allowed; this is a gateway server
|
||||||
let gam_sid = xns.register_name(api::SERVER_NAME_GAM, None).expect("can't register server");
|
let gam_sid = xns.register_name(api::SERVER_NAME_GAM, None).expect("can't register server");
|
||||||
CB_TO_MAIN_CONN.store(xous::connect(gam_sid).unwrap(), Ordering::Relaxed);
|
CB_TO_MAIN_CONN.store(xous::connect(gam_sid).unwrap(), Ordering::Relaxed);
|
||||||
log::trace!("starting up...");
|
|
||||||
|
|
||||||
let ticktimer = ticktimer_server::Ticktimer::new().expect("Couldn't connect to Ticktimer");
|
let ticktimer = ticktimer_server::Ticktimer::new().expect("Couldn't connect to Ticktimer");
|
||||||
|
|
||||||
|
|
@ -135,8 +134,9 @@ fn wrapped_main() -> ! {
|
||||||
}
|
}
|
||||||
loop {
|
loop {
|
||||||
let mut msg = xous::receive_message(gam_sid).unwrap();
|
let mut msg = xous::receive_message(gam_sid).unwrap();
|
||||||
log::trace!("Message: {:?}", msg);
|
let op = FromPrimitive::from_usize(msg.body.id());
|
||||||
match FromPrimitive::from_usize(msg.body.id()) {
|
log::debug!("{:?}", op);
|
||||||
|
match op {
|
||||||
Some(Opcode::ClearCanvas) => {
|
Some(Opcode::ClearCanvas) => {
|
||||||
msg_scalar_unpack!(msg, g0, g1, g2, g3, {
|
msg_scalar_unpack!(msg, g0, g1, g2, g3, {
|
||||||
let gid = Gid::new([g0 as _, g1 as _, g2 as _, g3 as _]);
|
let gid = Gid::new([g0 as _, g1 as _, g2 as _, g3 as _]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue