`cortex-m-semihosting`: `hprint!` family of macros do not format strings without arguments
suaviloquence opened this issue · 1 comments
suaviloquence commented
In the hprint! macros:
cortex-m/cortex-m-semihosting/src/macros.rs
Lines 36 to 44 in f2fc7d3
They do not print format strings with no arguments (e.g., hprint!("{address}") is sugar for hprint!("{}", address), which is a deviation from the stdlib print! macros using format_args!.
If it's acceptable performance-wise, I can submit a PR to use e.g. hstdout_fmt in this case instead of hstdout_str, otherwise I can document this deviation.