Commit 0ea4c390 authored by Alban Kurti's avatar Alban Kurti Committed by Miguel Ojeda
Browse files

rust: workqueue: add missing newline to pr_info! examples



The documentation examples in rust/kernel/workqueue.rs use pr_info!
calls that lack a trailing newline. To maintain consistency with
kernel logging practices, this patch adds the newline to all
affected examples.

Fixes: 15b286d1 ("rust: workqueue: add examples")
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>
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250206-printing_fix-v3-5-a85273b501ae@invicto.ai


[ Replaced Closes with Link since it fixes part of the issue. - Miguel ]
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 50c3e77e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@
//!     type Pointer = Arc<MyStruct>;
//!
//!     fn run(this: Arc<MyStruct>) {
//!         pr_info!("The value is: {}", this.value);
//!         pr_info!("The value is: {}\n", this.value);
//!     }
//! }
//!
@@ -108,7 +108,7 @@
//!     type Pointer = Arc<MyStruct>;
//!
//!     fn run(this: Arc<MyStruct>) {
//!         pr_info!("The value is: {}", this.value_1);
//!         pr_info!("The value is: {}\n", this.value_1);
//!     }
//! }
//!
@@ -116,7 +116,7 @@
//!     type Pointer = Arc<MyStruct>;
//!
//!     fn run(this: Arc<MyStruct>) {
//!         pr_info!("The second value is: {}", this.value_2);
//!         pr_info!("The second value is: {}\n", this.value_2);
//!     }
//! }
//!