Skip to content

Commit

Permalink
rust: error: add missing newline to pr_warn! calls
Browse files Browse the repository at this point in the history
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>
Closes: Rust-for-Linux#1139
Signed-off-by: Alban Kurti <kurti@invicto.ai>
  • Loading branch information
albankurti authored and intel-lab-lkp committed Feb 6, 2025
1 parent 237c529 commit d84e48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/kernel/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d84e48e

Please sign in to comment.