aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-09-06 21:38:27 +0200
committerGravatar GitHub <noreply@github.com> 2018-09-06 21:38:27 +0200
commitc38e828bc11dbc5a4e35e7ac5cf89ca5831d1e0b (patch)
tree8dcb39081a4975474aabdc93b0df5f0c520e13f7 /src
parent63334e29e22fb18ca42e7611dd8364fa588c4d5c (diff)
parentf5ce9839664bd5723cc0f7f934e9c0a38de25c41 (diff)
downloadcortex-m-c38e828bc11dbc5a4e35e7ac5cf89ca5831d1e0b.tar.gz
cortex-m-c38e828bc11dbc5a4e35e7ac5cf89ca5831d1e0b.tar.zst
cortex-m-c38e828bc11dbc5a4e35e7ac5cf89ca5831d1e0b.zip
Merge branch 'master' into master
Diffstat (limited to 'src')
-rw-r--r--src/macros.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/macros.rs b/src/macros.rs
index e41cdc5..813552f 100644
--- a/src/macros.rs
+++ b/src/macros.rs
@@ -13,13 +13,13 @@ macro_rules! iprint {
#[macro_export]
macro_rules! iprintln {
($channel:expr) => {
- iprint!($channel, "\n");
+ $crate::itm::write_str($channel, "\n");
};
($channel:expr, $fmt:expr) => {
- iprint!($channel, concat!($fmt, "\n"));
+ $crate::itm::write_str($channel, concat!($fmt, "\n"));
};
($channel:expr, $fmt:expr, $($arg:tt)*) => {
- iprint!($channel, concat!($fmt, "\n"), $($arg)*);
+ $crate::itm::write_fmt($channel, format_args!(concat!($fmt, "\n"), $($arg)*));
};
}