aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-08-08 14:41:00 -0400
committerBrian Cully <bjc@kublai.com>2022-08-08 14:41:00 -0400
commit299d06dad9c4bfc8eef70271204a4f9f7379e5ce (patch)
tree4e2a011eab1ebd9d5bb684b099fa4b40baefaa07 /src/main.rs
parente84a0d01a0c1633a2cd15bf4bab7eb934f374c68 (diff)
downloadluchie-299d06dad9c4bfc8eef70271204a4f9f7379e5ce.tar.gz
luchie-299d06dad9c4bfc8eef70271204a4f9f7379e5ce.zip
update log inteface, add (and use) ‘log!’ macro.
Diffstat (limited to 'src/main.rs')
-rwxr-xr-xsrc/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 2b0bde2..7fd2ba3 100755
--- a/src/main.rs
+++ b/src/main.rs
@@ -54,13 +54,14 @@ fn main(_hartid: usize) -> ! {
&mut rcu,
);
let (tx, _rx) = serial.split();
- unsafe { log::new(tx) };
+ log::init(tx);
loop {
let mut can_sleep = true;
can_sleep &= blink.poll() == PollResult::WouldBlock;
- unsafe { log::log("hi\r\n") };
+ log!("yo!");
+ logln!(" mtv raps");
if can_sleep {
unsafe { wfi() };