From 1b85d8a4de33a74a2110aaac1f0a34094866822c Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Mon, 10 May 2021 14:19:38 +0800 Subject: [PATCH] kernel: format syscalls as hex This improves readability, particuarly when addresses are involved. Signed-off-by: Sean Cross --- kernel/src/syscall.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/src/syscall.rs b/kernel/src/syscall.rs index c52250402..a86f1c17f 100644 --- a/kernel/src/syscall.rs +++ b/kernel/src/syscall.rs @@ -229,7 +229,8 @@ fn send_message(pid: PID, thread: TID, cid: CID, message: Message) -> SysCallRes ); // Add this message to the queue. If the queue is full, this // returns an error. - ss.queue_server_message(sidx, pid, thread, message, client_address)?; + let _queue_idx = ss.queue_server_message(sidx, pid, thread, message, client_address)?; + klog!("queued into index {:x}", _queue_idx); // Park this context if it's blocking. This is roughly // equivalent to a "Yield". @@ -529,7 +530,7 @@ fn receive_message(pid: PID, tid: TID, sid: SID, blocking: ExecutionType) -> Sys // If there is a pending message, return it immediately. if let Some(msg) = server.take_next_message(sidx) { - klog!("waiting messages found -- returning {:?}", msg); + klog!("waiting messages found -- returning {:x?}", msg); return Ok(xous_kernel::Result::Message(msg)); }