linux/rust/kernel
Asahi Lina c3f41b0030 rust: kernel: str: Implement Debug for CString
Make it possible to use a `CString` with the `pr_*` macros directly. That
is, instead of:

    pr_debug!("trying to open {:?}\n", &*filename);

we can now write:

    pr_debug!("trying to open {:?}\n", filename);

Signed-off-by: Asahi Lina <lina@asahilina.net>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Link: https://lore.kernel.org/r/20230714-cstring-debug-v1-1-4e7c3018dd4f@asahilina.net
[ Reworded to use Alice's commit message as discussed. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2023-12-13 00:13:49 +01:00
..
init
sync workqueue: Add rust bindings for v6.7 2023-10-30 20:35:48 -10:00
allocator.rs
build_assert.rs
error.rs
init.rs
ioctl.rs
kunit.rs
lib.rs
prelude.rs
print.rs
static_assert.rs
std_vendor.rs
str.rs rust: kernel: str: Implement Debug for CString 2023-12-13 00:13:49 +01:00
sync.rs
task.rs
types.rs
workqueue.rs