From 6f061153e690d39829b516788e9dfb623ed38e97 Mon Sep 17 00:00:00 2001 From: Jcodefox Date: Fri, 1 Dec 2023 10:02:56 -0500 Subject: [PATCH] Log number with buffer error --- kernel/src/holeybytes/ecah.rs | 4 +++- sysdata/test-programs/main.rhai | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/src/holeybytes/ecah.rs b/kernel/src/holeybytes/ecah.rs index c43226bd..8b6fb944 100644 --- a/kernel/src/holeybytes/ecah.rs +++ b/kernel/src/holeybytes/ecah.rs @@ -92,7 +92,9 @@ pub fn handler(vm: &mut Vm) { msg_vec, buffer_id ); } - None => log::error!("Access of non-existent buffer") + None => { + log::error!("Access of non-existent buffer {}", buffer_id) + } } drop(buffs); } diff --git a/sysdata/test-programs/main.rhai b/sysdata/test-programs/main.rhai index 1875f365..d95eb923 100644 --- a/sysdata/test-programs/main.rhai +++ b/sysdata/test-programs/main.rhai @@ -8,6 +8,9 @@ fn main(){ std::Trace("Trace Deez"); std::ipc_send(2, 0, 0); + + std::ipc_make_bound_buffer(64); + std::ipc_send(3, 0, 0); tx();