We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b56f0f commit b22d89cCopy full SHA for b22d89c
examples/utils/logger.rs
@@ -41,8 +41,8 @@ cfg_if::cfg_if! {
41
42
#[allow(unused_macros)]
43
macro_rules! println {
44
- ($($tt:tt)*) => {
45
- log::info!($($tt,)*);
+ ($($arg:tt)+) => {
+ log::info!($($arg)+);
46
};
47
}
48
@@ -90,8 +90,11 @@ cfg_if::cfg_if! {
90
91
92
93
94
- cortex_m_semihosting::hprintln!($($tt,)*).unwrap();
+ ($s:expr) => {
+ cortex_m_semihosting::hprintln!($s).unwrap();
95
+ };
96
+ ($s:expr, $($tt:tt)*) => {
97
+ cortex_m_semihosting::hprintln!($s, $($tt)*).unwrap();
98
99
100
0 commit comments