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

Prints an error-level message (level 3) prefixed with device information.

This level should be used in error conditions.

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