Skip to content

Commit

Permalink
Tweak error message
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Jul 31, 2024
1 parent c833ef8 commit 1e9dab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/ring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e9dab7

Please sign in to comment.