diff options
author | Brian Cully <bjc@kublai.com> | 2022-08-08 14:41:00 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2022-08-08 14:41:00 -0400 |
commit | 299d06dad9c4bfc8eef70271204a4f9f7379e5ce (patch) | |
tree | 4e2a011eab1ebd9d5bb684b099fa4b40baefaa07 /src/main.rs | |
parent | e84a0d01a0c1633a2cd15bf4bab7eb934f374c68 (diff) | |
download | luchie-299d06dad9c4bfc8eef70271204a4f9f7379e5ce.tar.gz luchie-299d06dad9c4bfc8eef70271204a4f9f7379e5ce.zip |
update log inteface, add (and use) ‘log!’ macro.
Diffstat (limited to 'src/main.rs')
-rwxr-xr-x | src/main.rs | 5 |
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() }; |