projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2e413f
)
rust: error: add missing newline to pr_warn! calls
author
Alban Kurti
<kurti@invicto.ai>
Thu, 6 Feb 2025 21:07:53 +0000
(21:07 +0000)
committer
Miguel Ojeda
<ojeda@kernel.org>
Wed, 5 Mar 2025 23:42:13 +0000
(
00:42
+0100)
Added missing newline at the end of pr_warn! usage
so the log is not missed.
Fixes:
6551a7fe0acb
("rust: error: Add Error::from_errno{_unchecked}()")
Reported-by: Miguel Ojeda <ojeda@kernel.org>
Link:
https://github.com/Rust-for-Linux/linux/issues/1139
Signed-off-by: Alban 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: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/error.rs
patch
|
blob
|
blame
|
history
diff --git
a/rust/kernel/error.rs
b/rust/kernel/error.rs
index f6ecf09cb65f4ebe9b88da68b3830ae79aa4f182..a194d83e6835c03b84cc849b641ce8fff548047d 100644
(file)
--- a/
rust/kernel/error.rs
+++ b/
rust/kernel/error.rs
@@
-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