zephyr

Macro printkln

source
macro_rules! printkln {
    ($($arg:tt)*) => { ... };
}
Expand description

Print to Zephyr’s console, with 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.