]> Gentwo Git Trees - linux/.git/commit
rust: alloc: use `kernel::fmt`
authorTamir Duberstein <tamird@gmail.com>
Sat, 18 Oct 2025 19:16:27 +0000 (15:16 -0400)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 20 Oct 2025 02:04:23 +0000 (04:04 +0200)
commitb0af4f9142d046e6564479a3afb1b35479d81039
tree80fe1d602b6097b63db231bdb691bd7d1ae88b16
parent5cc5d805e3ca44831ee668762dc6ee8876d14a37
rust: alloc: use `kernel::fmt`

Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.

This backslid in commit 9def0d0a2a1c ("rust: alloc: add
Vec::push_within_capacity").

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://patch.msgid.link/20251018-cstr-core-v18-6-9378a54385f8@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/alloc/kvec/errors.rs