Skip to content

Commit d84e48e

Browse files
albankurtiintel-lab-lkp
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 <[email protected]> Closes: Rust-for-Linux#1139 Signed-off-by: Alban Kurti <[email protected]>
1 parent 237c529 commit d84e48e

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)