Skip to content

rust: treewide: add missing newlines to printing calls

Alban Kurti linux-doc lkml rust-for-linux 1 version Applied

Status from this message: Applied these (i.e. the first 5) to `rust-fixes` -- thanks everyone!

Get series with b4
b4 am [email protected] change-id 20250206-printing_fix-e7a7950b9e7c

Versions newest first

  1. v3 Latest6 patches 5 repliesApplied

Changes in v3 from the cover letter

- Same code changes to v2, but split patches into multiple patches and improved the descriptions

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6rust: docs: add missing newline to printing macro examplesDocumentation/rust/testing.rst+1 -11 reply
2/6rust: error: add missing newline to pr_warn! callsrust/kernel/error.rs+1 -10 replies
3/6rust: init: add missing newline to pr_info! callsrust/kernel/init.rs rust/kernel/init/macros.rs+9 -90 replies
4/6rust: sync: add missing newline in locked_by log examplerust/kernel/sync/locked_by.rs+1 -10 replies
5/6rust: workqueue: add missing newline to pr_info! examplesrust/kernel/workqueue.rs+3 -31 reply
6/6rust: samples: add missing newline to pr_info! calls in rust_print_mainsamples/rust/rust_print_main.rs+4 -42 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchDavid GowAlice Ryhl
1/6R-b
2/6
3/6
4/6
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] rust: treewide: add missing newlines to printing calls

Adding newline at the end of all Rust pr_* and dev_* macro calls that miss a newline.
pr_*! and dev_*! macros are supposed to be called with a newline at the end, just like in the C side such that independent lines are not visually missed. There were no dev_*! cases with a missing newline found.

---
Changes in v3:
- Same code changes to v2, but split patches into multiple patches and improved the descriptions

---
Alban Kurti (6):
rust: docs: add missing newline to printing macro examples
rust: error: add missing newline to pr_warn! calls
rust: init: add missing newline to pr_info! calls
rust: sync: add missing newline in locked_by log example
rust: workqueue: add missing newline to pr_info! examples
rust: samples: add missing newline to pr_info! calls in rust_print_main

 Documentation/rust/testing.rst  |  2 +-
 rust/kernel/error.rs            |  2 +-
 rust/kernel/init.rs             | 12 ++++++------
 rust/kernel/init/macros.rs      |  6 +++---
 rust/kernel/sync/locked_by.rs   |  2 +-
 rust/kernel/workqueue.rs        |  6 +++---
 samples/rust/rust_print_main.rs |  8 ++++----
 7 files changed, 19 insertions(+), 19 deletions(-)

---
base-commit: ceff0757f5dafb5be5205988171809c877b1d3e3
change-id: 20250206-printing_fix-e7a7950b9e7c

Best regards,

Signature · 1 line
Alban Kurti <[email protected]>