Skip to content
Snippets Groups Projects
Commit 9dcd2b72 authored by Alban Kurti's avatar Alban Kurti Committed by Greg Kroah-Hartman
Browse files

rust: init: add missing newline to pr_info! calls


[ Upstream commit 6933c106 ]

Several pr_info! calls in rust/kernel/init.rs (both in code examples
and macro documentation) were missing a newline, causing logs to
run together. This commit updates these calls to include a trailing
newline, improving readability and consistency with the C side.

Fixes: 6841d45a ("rust: init: add `stack_pin_init!` macro")
Fixes: 7f8977a7 ("rust: init: add `{pin_}chain` functions to `{Pin}Init<T, E>`")
Fixes: d0fdc396 ("rust: init: add `PinnedDrop` trait and macros")
Fixes: 4af84c6a ("rust: init: update expanded macro explanation")
Reported-by: default avatarMiguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1139


Signed-off-by: default avatarAlban Kurti <kurti@invicto.ai>
Link: https://lore.kernel.org/r/20250206-printing_fix-v3-3-a85273b501ae@invicto.ai


[ Replaced Closes with Link since it fixes part of the issue. Added
  one more Fixes tag (still same set of stable kernels). - Miguel ]
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c79a4625
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment