Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 24ced39

Browse files
committed
For now, allocate so we format things into a single line
1 parent 1647ff5 commit 24ced39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/printk.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ macro_rules! println {
2828
});
2929
($fmt:expr, $($arg:tt)*) => ({
3030
use ::core::fmt::Write;
31-
let _ = $crate::printk::KernelConsole.write_fmt(format_args!(concat!("\x016", $fmt, "\n"), $($arg)*));
31+
// TODO: Don't allocate!
32+
let s = format!(concat!("\x016", $fmt, "\n"), $($arg)*);
33+
let _ = $crate::printk::KernelConsole.write_str(s);
3234
});
3335
}

0 commit comments

Comments
 (0)