rust: block: use `NullTerminatedFormatter`
Use the new `NullTerminatedFormatter` to write the name of a `GenDisk` to the name buffer. This new formatter automatically adds a trailing null marker after the written characters, so we don't need to append that at the call site any longer. Reviewed-by:Alice Ryhl <aliceryhl@google.com> Reviewed-by:
Daniel Almeida <daniel.almeida@collabora.com> Signed-off-by:
Andreas Hindborg <a.hindborg@kernel.org> Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-8-b5212cc89b98@kernel.org Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Loading
Please sign in to comment