rust: add `dev_*` print macros.
authorWedson Almeida Filho <wedsonaf@google.com>
Tue, 22 Oct 2024 21:31:45 +0000 (23:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Nov 2024 04:33:46 +0000 (05:33 +0100)
commit5c7ca6fa603fc669253b166649ba635a38a9d7ee
tree66278fc7b86a761db358784b74813313e20cb3b3
parent7f15c46a57c31956591f85b713d7e63cccb25556
rust: add `dev_*` print macros.

Implement `dev_*` print macros for `device::Device`.

They behave like the macros with the same names in C, i.e., they print
messages to the kernel ring buffer with the given level, prefixing the
messages with corresponding device information.

Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20241022213221.2383-9-dakr@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
rust/kernel/device.rs
rust/kernel/prelude.rs