Macro kernel::prelude::pr_warn

source ·
macro_rules! pr_warn {
    ($($arg:tt)*) => { ... };
}
Expand description

Prints a warning-level message (level 4).

Use this level for warning conditions.

Equivalent to the kernel’s pr_warn macro.

Mimics the interface of std::print!. See core::fmt and alloc::format! for information about the formatting syntax.

Examples

pr_warn!("hello {}\n", "there");
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.