Skip to content

Commit e7d40e3

Browse files
committed
zephyr: spinmutex: Fix Debug message type
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]>
1 parent 083cb14 commit e7d40e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zephyr/src/sync/spinmutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ unsafe impl<T: ?Sized + Send> Sync for SpinMutex<T> {}
5555

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

0 commit comments

Comments
 (0)