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

Prints a debug-level message (level 7) prefixed with device information.

This level should be used for debug messages.

Equivalent to the kernel’s dev_dbg macro, except that it doesn’t support dynamic debug yet.

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


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