From 154384e3bb7714f20fc8d8f8abe322cddeda4926 Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 13 Oct 2020 16:15:15 +0800 Subject: [PATCH] output hex for kernel debug makes it much easier to read memory allocation requests --- kernel/src/syscall.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/src/syscall.rs b/kernel/src/syscall.rs index 943ce6c77..4b17669c0 100644 --- a/kernel/src/syscall.rs +++ b/kernel/src/syscall.rs @@ -435,10 +435,10 @@ fn receive_message(pid: PID, tid: TID, sid: SID) -> SysCallResult { pub fn handle(pid: PID, tid: TID, call: SysCall) -> SysCallResult { #[cfg(feature = "debug-print")] - print!("KERNEL({}:{}): Syscall {:?}", pid, tid, call); + print!("KERNEL({}:{}): Syscall {:x?}", pid, tid, call); let result = handle_inner(pid, tid, call); #[cfg(feature = "debug-print")] - println!(" -> {:?}", result); + println!(" -> {:x?}", result); result }