os1::printf! [] [src]

macro_rules! printf {
    ($($arg:tt)*) => ({
        use ::core::fmt::Write;
        use ::interrupts::{on, off};

        off();
        let _ = write!($crate::debug::Debug, $($arg)*);
        on();
    })
}

A macro for printing using format strings to the console when interrupts are enabled