Skip to content

Commit

Permalink
zephyr: spinmutex: Fix Debug message type
Browse files Browse the repository at this point in the history
Print the type of this item specifically as SpinMutex instead of just
Mutex, so that it if is used in debug messages, it will be helpful (and
correct).

Signed-off-by: David Brown <[email protected]>
  • Loading branch information
d3zd3z committed Nov 20, 2024
1 parent 083cb14 commit e7d40e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zephyr/src/sync/spinmutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ unsafe impl<T: ?Sized + Send> Sync for SpinMutex<T> {}

impl<T> fmt::Debug for SpinMutex<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "Mutex {:?}", self.inner)
write!(f, "SpinMutex {:?}", self.inner)
}
}

Expand Down

0 comments on commit e7d40e3

Please sign in to comment.