We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b443265 commit 19dd092Copy full SHA for 19dd092
samples/rust/rust_print_main.rs
@@ -23,10 +23,10 @@ fn arc_print() -> Result {
23
let b = UniqueArc::new("hello, world", GFP_KERNEL)?;
24
25
// Prints the value of data in `a`.
26
- pr_info!("{}", a);
+ pr_info!("{}\n", a);
27
28
// Uses ":?" to print debug fmt of `b`.
29
- pr_info!("{:?}", b);
+ pr_info!("{:?}\n", b);
30
31
let a: Arc<&str> = b.into();
32
let c = a.clone();
@@ -53,7 +53,7 @@ fn arc_print() -> Result {
53
}
54
55
// Pretty-prints the debug formatting with lower-case hexadecimal integers.
56
- pr_info!("{:#x?}", a);
+ pr_info!("{:#x?}\n", a);
57
58
Ok(())
59
0 commit comments