Skip to content

Commit b2037b8

Browse files
albankurtiopsiff
authored andcommitted
rust: error: add missing newline to pr_warn! calls
[ Upstream commit 6f5c36f56d475732981dcf624e0ac0cc7c8984c8 ] 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 <[email protected]> Link: Rust-for-Linux/linux#1139 Signed-off-by: Alban Kurti <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Replaced Closes with Link since it fixes part of the issue. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]> Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit 5da54be)
1 parent af72a66 commit b2037b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl Error {
103103
if errno < -(bindings::MAX_ERRNO as i32) || errno >= 0 {
104104
// TODO: Make it a `WARN_ONCE` once available.
105105
crate::pr_warn!(
106-
"attempted to create `Error` with out of range `errno`: {}",
106+
"attempted to create `Error` with out of range `errno`: {}\n",
107107
errno
108108
);
109109
return code::EINVAL;

0 commit comments

Comments
 (0)