From 1e9dab722c0c8723033fb5a3ade1a79b85029834 Mon Sep 17 00:00:00 2001 From: Alex Saveau Date: Wed, 31 Jul 2024 00:59:47 -0700 Subject: [PATCH] Tweak error message Signed-off-by: Alex Saveau --- core/src/ring.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ring.rs b/core/src/ring.rs index 9d29f9f..3d9b789 100644 --- a/core/src/ring.rs +++ b/core/src/ring.rs @@ -258,7 +258,7 @@ impl Ring { &fd, usize::try_from(entries_to_offset(max_entries)).unwrap(), ) - .map_io_err(|| "Failed to map memory.")?; + .map_io_err(|| "Failed to mmap ring.")?; if len < MAGIC.len() || unsafe { slice::from_raw_parts(mem.ptr().as_ptr(), MAGIC.len()) } != MAGIC