diff --git a/rust/kernel/str.rs b/rust/kernel/str.rs
index 17dc8d2733029274290392f36137054c78e1db47..b771310fa4a49e0a1f2389f438784ec899725212 100644
--- a/rust/kernel/str.rs
+++ b/rust/kernel/str.rs
@@ -583,3 +583,9 @@ fn deref(&self) -> &Self::Target {
         unsafe { CStr::from_bytes_with_nul_unchecked(self.buf.as_slice()) }
     }
 }
+
+/// A convenience alias for [`core::format_args`].
+#[macro_export]
+macro_rules! fmt {
+    ($($f:tt)*) => ( core::format_args!($($f)*) )
+}