Skip to content
Snippets Groups Projects
Commit 6f5c36f5 authored by Alban Kurti's avatar Alban Kurti Committed by Miguel Ojeda
Browse files

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: 6551a7fe ("rust: error: Add Error::from_errno{_unchecked}()")
Reported-by: default avatarMiguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1139


Signed-off-by: default avatarAlban 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: default avatarMiguel Ojeda <ojeda@kernel.org>
parent f2e413f0
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ impl Error {
} else {
// TODO: Make it a `WARN_ONCE` once available.
crate::pr_warn!(
"attempted to create `Error` with out of range `errno`: {}",
"attempted to create `Error` with out of range `errno`: {}\n",
errno
);
code::EINVAL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment