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

Prints an alert-level message (level 1) prefixed with device information.

This level should be used if action must be taken immediately.

Equivalent to the kernel’s dev_alert 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_alert!(dev, "hello {}\n", "there");
}