[PATCH v1 2/3] dma-mapping: rust: samples: add missing newline in rust_dma
From: Mehmet Koseoglu
Date: Thu Aug 27 2026 - 21:55:35 EST
The `dev_info!` call iterating over scatter-gather table entries in
`DmaSampleDriver::drop` is missing a trailing newline, causing the
printed message to not be properly line-terminated.
Add the missing `\n` to the format string.
Fixes: 5444799d701c ("samples: rust: dma: add sample code for SGTable")
Suggested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
Link: https://github.com/Rust-for-Linux/linux/issues/1139
Signed-off-by: Mehmet Koseoglu <mehmet.mkoseoglu@xxxxxxxxx>
---
samples/rust/rust_dma.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/rust/rust_dma.rs b/samples/rust/rust_dma.rs
index bd60034ded23..aa454e4841a7 100644
--- a/samples/rust/rust_dma.rs
+++ b/samples/rust/rust_dma.rs
@@ -125,7 +125,7 @@ fn drop(self: Pin<&mut Self>) {
for (i, entry) in self.sgt.iter().enumerate() {
dev_info!(
self.pdev,
- "Entry[{}]: DMA address: {:#x}",
+ "Entry[{}]: DMA address: {:#x}\n",
i,
entry.dma_address(),
);
--
2.55.0