Skip to content

Commit f54c7e4

Browse files
albankurtiSasha Levin
authored and
Sasha Levin
committed
rust: error: add missing newline to pr_warn! calls
[ Upstream commit 6f5c36f ] 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]>
1 parent 3460539 commit f54c7e4

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
@@ -104,7 +104,7 @@ impl Error {
104104
if errno < -(bindings::MAX_ERRNO as i32) || errno >= 0 {
105105
// TODO: Make it a `WARN_ONCE` once available.
106106
crate::pr_warn!(
107-
"attempted to create `Error` with out of range `errno`: {}",
107+
"attempted to create `Error` with out of range `errno`: {}\n",
108108
errno
109109
);
110110
return code::EINVAL;

0 commit comments

Comments
 (0)