Skip to content

Commit 6f5c36f

Browse files
albankurtiojeda
authored andcommitted
rust: error: add missing newline to pr_warn! calls
Added missing newline at the end of pr_warn! usage so the log is not missed. Fixes: 6551a7f ("rust: error: Add Error::from_errno{_unchecked}()") Reported-by: Miguel Ojeda <ojeda@kernel.org> Link: Rust-for-Linux#1139 Signed-off-by: Alban Kurti <kurti@invicto.ai> Link: https://lore.kernel.org/r/20250206-printing_fix-v3-2-a85273b501ae@invicto.ai [ Replaced Closes with Link since it fixes part of the issue. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent f2e413f commit 6f5c36f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl Error {
107107
} else {
108108
// TODO: Make it a `WARN_ONCE` once available.
109109
crate::pr_warn!(
110-
"attempted to create `Error` with out of range `errno`: {}",
110+
"attempted to create `Error` with out of range `errno`: {}\n",
111111
errno
112112
);
113113
code::EINVAL

0 commit comments

Comments
 (0)