From 299d06dad9c4bfc8eef70271204a4f9f7379e5ce Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 8 Aug 2022 14:41:00 -0400 Subject: =?UTF-8?q?update=20log=20inteface,=20add=20(and=20use)=20?= =?UTF-8?q?=E2=80=98log!=E2=80=99=20macro.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.rs') 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() }; -- cgit v1.2.3