Skip to main content

printk

Macro printk 

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

Format + write to the console without going through the log framework. Useful for early-boot debug (before log::init()) and for ISR-adjacent contexts.

Equivalent to Zephyr’s printk!. Formats into a 256-byte stack buffer and silently truncates if the result is larger.

ove::printk!("boot stage {}: {} bytes free\n", stage, free);