rust: sync: add missing newline in locked_by log example
authorAlban Kurti <kurti@invicto.ai>
Thu, 6 Feb 2025 21:07:55 +0000 (21:07 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 6 Mar 2025 19:44:06 +0000 (20:44 +0100)
commit50c3e77eb3712a039760345999709ee0fad83447
treed62ae8337c185d000f150997ac4da62d2cbab4cf
parent6933c1067fe6df8ddb34dd68bdb2aa172cbd08c8
rust: sync: add missing newline in locked_by log example

The pr_info! example in rust/kernel/sync/locked_by.rs was missing
a newline. This patch appends the missing newline to ensure
that log messages for locked resources display correctly.

Fixes: 7b1f55e3a984 ("rust: sync: introduce `LockedBy`")
Reported-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1139
Signed-off-by: Alban Kurti <kurti@invicto.ai>
Link: https://lore.kernel.org/r/20250206-printing_fix-v3-4-a85273b501ae@invicto.ai
[ Replaced Closes with Link since it fixes part of the issue. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/sync/locked_by.rs