From 3112f41d96f0d4b6cc6ffed97c4244831e30b9b6 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 16 May 2024 03:54:35 +0800 Subject: [PATCH] fix bug in debug --- kernel/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/main.rs b/kernel/src/main.rs index eb565668f..c25bdd000 100644 --- a/kernel/src/main.rs +++ b/kernel/src/main.rs @@ -112,7 +112,7 @@ pub extern "C" fn kmain() { match pid { Some(pid) => { #[cfg(feature = "debug-print")] - println!(" PID{:?}->{:?}", last_pid.unwrap_or(0), pid); // keep this succinct as it happens often + println!(" PID{:?}->{:?}", last_pid, pid); // keep this succinct as it happens often xous_kernel::rsyscall(xous_kernel::SysCall::SwitchTo(pid, 0)) .expect("couldn't switch to pid"); }