output hex for kernel debug

makes it much easier to read memory allocation requests
This commit is contained in:
bunnie 2020-10-13 16:15:15 +08:00
parent a2ede7adf6
commit 154384e3bb

View file

@ -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
}