Commit 1765f2a2 authored by Asahi Lina's avatar Asahi Lina Committed by Treehugger Robot
Browse files

UPSTREAM: 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: default avatarAsahi Lina <lina@asahilina.net>
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Reviewed-by: default avatarBenno Lossin <benno.lossin@proton.me>
Reviewed-by: default avatarMartin 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: default avatarMiguel Ojeda <ojeda@kernel.org>
[ Upstream commit c3f41b00 ]
Change-Id: I36f70ee924cf7c2763fdc7348c4447f7234d3ba7
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
parent fe698110
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment