macro_rules! printk { ($($arg:tt)*) => { ... }; }
Expand description
Print to Zephyr’s console, without a newline.
This macro uses the same syntax as std’s
format!
, but writes to the Zephyr
console instead.
if CONFIG_PRINTK_SYNC
is enabled, this locks during printing. However, to avoid allocation,
and due to private accessors in the Zephyr printk implementation, the lock is only over groups
of a small buffer size. This buffer must be kept fairly small, as it resides on the stack.