diff options
author | Asahi Lina <lina@asahilina.net> | 2023-07-14 18:19:33 +0900 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2023-12-13 00:13:49 +0100 |
commit | c3f41b00307f796756ec494b90c9e238800a0ff8 (patch) | |
tree | a4e816f4958a1be4590e12ac94b1d6cfb7ef10ae /scripts/gdb/linux/interrupts.py | |
parent | a39b6ac3781d46ba18193c9dbb2110f31e9bffe9 (diff) |
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>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions