Skip to main content

println

Macro println 

Source
macro_rules! println {
    () => { ... };
    ($fmt:expr) => { ... };
    ($fmt:expr, $($arg:tt)*) => { ... };
}
Expand description

Prints formatted text with a newline (\r\n).

In std mode this writes to standard output. In no_std mode this writes to UART.

§Examples

use osal_rs::println;
 
println!("Hello World");
println!("Value: {}", 42);
println!();  // Just a newline