macro_rules! dev_crit {
    ($($f:tt)*) => { ... };
}
Expand description

Prints a critical-level message (level 2) prefixed with device information.

This level should be used in critical conditions.

Equivalent to the kernel’s dev_crit macro.

Mimics the interface of std::print!. More information about the syntax is available from core::fmt and alloc::format!.

Examples


fn example(dev: &Device) {
    dev_crit!(dev, "hello {}\n", "there");
}