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

Prints a warning-level message (level 4) prefixed with device information.

This level should be used in warning conditions.

Equivalent to the kernel’s dev_warn 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_warn!(dev, "hello {}\n", "there");
}
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.