* [PATCH] rust: module_param: add missing newline to pr_warn
@ 2026-05-21 16:14 Kenny Glowner
2026-05-28 8:56 ` Miguel Ojeda
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Kenny Glowner @ 2026-05-21 16:14 UTC (permalink / raw)
To: Luis Chamberlain, Petr Pavlu, Daniel Gomez, Sami Tolvanen,
Miguel Ojeda
Cc: linux-modules, rust-for-linux, linux-kernel, Kenny Glowner
Add a trailing newline ('\n') to the pr_warn! call in set_param to
ensure the kernel ring buffer flushes the message correctly and
prevents log line smearing.
Link: https://github.com/Rust-for-Linux/linux/issues/1139
Signed-off-by: Kenny Glowner <SisyphusCode0311@gmail.com>
---
rust/kernel/module_param.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/module_param.rs b/rust/kernel/module_param.rs
index 6a8a7a875643..fa26089be2e0 100644
--- a/rust/kernel/module_param.rs
+++ b/rust/kernel/module_param.rs
@@ -63,7 +63,7 @@ pub trait ModuleParam: Sized + Copy {
// to be null here.
if val.is_null() {
// TODO: Use pr_warn_once available.
- crate::pr_warn!("Null pointer passed to `module_param::set_param`");
+ crate::pr_warn!("Null pointer passed to `module_param::set_param`\n");
return EINVAL.to_errno();
}
--
2.54.0
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] rust: module_param: add missing newline to pr_warn
2026-05-21 16:14 [PATCH] rust: module_param: add missing newline to pr_warn Kenny Glowner
@ 2026-05-28 8:56 ` Miguel Ojeda
2026-05-28 20:35 ` Sami Tolvanen
2026-05-28 8:59 ` Miguel Ojeda
2026-05-29 1:05 ` Sami Tolvanen
2 siblings, 1 reply; 6+ messages in thread
From: Miguel Ojeda @ 2026-05-28 8:56 UTC (permalink / raw)
To: Kenny Glowner
Cc: Luis Chamberlain, Petr Pavlu, Daniel Gomez, Sami Tolvanen,
Miguel Ojeda, linux-modules, rust-for-linux, linux-kernel
On Thu, May 21, 2026 at 6:14 PM Kenny Glowner
<sisyphuscode0311@gmail.com> wrote:
>
> Add a trailing newline ('\n') to the pr_warn! call in set_param to
> ensure the kernel ring buffer flushes the message correctly and
> prevents log line smearing.
Did you see log smearing? IIRC this changed with the buffer rework --
it is still the convention we expect, though, so the diff contents are
good.
> Link: https://github.com/Rust-for-Linux/linux/issues/1139
>
> Signed-off-by: Kenny Glowner <SisyphusCode0311@gmail.com>
Andreas, Sami, Daniel, Luis, Petr: will this one go through modules
too? Otherwise, please let me know and I can take it.
(Trivial conflict with the `pr_warn_once!` one applied yesterday.)
Thanks!
Cheers,
Miguel
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] rust: module_param: add missing newline to pr_warn
2026-05-28 8:56 ` Miguel Ojeda
@ 2026-05-28 20:35 ` Sami Tolvanen
[not found] ` <CANN+23v9vkzq_2o01z2VmkDnLaBTP8_Op5vvu=Ozg21T3o6m3w@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Sami Tolvanen @ 2026-05-28 20:35 UTC (permalink / raw)
To: Miguel Ojeda
Cc: Kenny Glowner, Luis Chamberlain, Petr Pavlu, Daniel Gomez,
Miguel Ojeda, linux-modules, rust-for-linux, linux-kernel
On Thu, May 28, 2026 at 1:56 AM Miguel Ojeda
<miguel.ojeda.sandonis@gmail.com> wrote:
>
> On Thu, May 21, 2026 at 6:14 PM Kenny Glowner
> <sisyphuscode0311@gmail.com> wrote:
> >
> > Add a trailing newline ('\n') to the pr_warn! call in set_param to
> > ensure the kernel ring buffer flushes the message correctly and
> > prevents log line smearing.
>
> Did you see log smearing? IIRC this changed with the buffer rework --
> it is still the convention we expect, though, so the diff contents are
> good.
>
> > Link: https://github.com/Rust-for-Linux/linux/issues/1139
> >
> > Signed-off-by: Kenny Glowner <SisyphusCode0311@gmail.com>
>
> Andreas, Sami, Daniel, Luis, Petr: will this one go through modules
> too? Otherwise, please let me know and I can take it.
Yes, I'll take this one through modules too. Thanks, Miguel.
Sami
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] rust: module_param: add missing newline to pr_warn
2026-05-21 16:14 [PATCH] rust: module_param: add missing newline to pr_warn Kenny Glowner
2026-05-28 8:56 ` Miguel Ojeda
@ 2026-05-28 8:59 ` Miguel Ojeda
2026-05-29 1:05 ` Sami Tolvanen
2 siblings, 0 replies; 6+ messages in thread
From: Miguel Ojeda @ 2026-05-28 8:59 UTC (permalink / raw)
To: Kenny Glowner
Cc: Luis Chamberlain, Petr Pavlu, Daniel Gomez, Sami Tolvanen,
Miguel Ojeda, linux-modules, rust-for-linux, linux-kernel
On Thu, May 21, 2026 at 6:14 PM Kenny Glowner
<sisyphuscode0311@gmail.com> wrote:
>
> Link: https://github.com/Rust-for-Linux/linux/issues/1139
>
> Signed-off-by: Kenny Glowner <SisyphusCode0311@gmail.com>
By the way, we put tags together as one -- also please feel free to
add me as suggester like the issue says (part of the reason behind
these "good first issues" is to show you how these tags usually work),
e.g.
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1139
Signed-off-by: Kenny Glowner <SisyphusCode0311@gmail.com>
Cheers,
Miguel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] rust: module_param: add missing newline to pr_warn
2026-05-21 16:14 [PATCH] rust: module_param: add missing newline to pr_warn Kenny Glowner
2026-05-28 8:56 ` Miguel Ojeda
2026-05-28 8:59 ` Miguel Ojeda
@ 2026-05-29 1:05 ` Sami Tolvanen
2 siblings, 0 replies; 6+ messages in thread
From: Sami Tolvanen @ 2026-05-29 1:05 UTC (permalink / raw)
To: Kenny Glowner
Cc: Luis Chamberlain, Petr Pavlu, Daniel Gomez, Miguel Ojeda,
linux-modules, rust-for-linux, linux-kernel
On Thu, May 21, 2026 at 11:14:05AM -0500, Kenny Glowner wrote:
> Add a trailing newline ('\n') to the pr_warn! call in set_param to
> ensure the kernel ring buffer flushes the message correctly and
> prevents log line smearing.
>
Applied to modules-next, thanks!
[1/1] rust: module_param: add missing newline to pr_warn_once
commit: ae12a56ba16adcb8a06d5b3b91d4f82a092e8de3
Best regards,
Sami
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-05-29 5:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-21 16:14 [PATCH] rust: module_param: add missing newline to pr_warn Kenny Glowner
2026-05-28 8:56 ` Miguel Ojeda
2026-05-28 20:35 ` Sami Tolvanen
[not found] ` <CANN+23v9vkzq_2o01z2VmkDnLaBTP8_Op5vvu=Ozg21T3o6m3w@mail.gmail.com>
2026-05-29 5:15 ` Miguel Ojeda
2026-05-28 8:59 ` Miguel Ojeda
2026-05-29 1:05 ` Sami Tolvanen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox