diff options
| author | Kenny Glowner <sisyphuscode0311@gmail.com> | 2026-05-21 11:14:05 -0500 |
|---|---|---|
| committer | Sami Tolvanen <samitolvanen@google.com> | 2026-06-04 16:42:34 +0000 |
| commit | 36d6b929bb0c7cc1cc742d9b5805537d3b651094 (patch) | |
| tree | c3fcf8c2ed459f7f6fb9131289f79386267a1afc /rust | |
| parent | 786d2d84416a9a1c1a47b71a68d679d886284be2 (diff) | |
| download | ath-36d6b929bb0c7cc1cc742d9b5805537d3b651094.tar.gz | |
rust: module_param: add missing newline to pr_warn_once
Add a trailing newline ('\n') to the pr_warn_once! call in set_param to
ensure the kernel ring buffer flushes the message correctly and
prevents log line smearing.
Signed-off-by: Kenny Glowner <SisyphusCode0311@gmail.com>
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1139
[Sami: Updated the commit message as we use pr_warn_once now.]
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/kernel/module_param.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/module_param.rs b/rust/kernel/module_param.rs index dd6d663a0a3c4..6541af218390c 100644 --- a/rust/kernel/module_param.rs +++ b/rust/kernel/module_param.rs @@ -62,7 +62,7 @@ where // NOTE: If we start supporting arguments without values, val _is_ allowed // to be null here. if val.is_null() { - crate::pr_warn_once!("Null pointer passed to `module_param::set_param`"); + crate::pr_warn_once!("Null pointer passed to `module_param::set_param`\n"); return EINVAL.to_errno(); } |
