diff options
author | Brian Cully <bjc@kublai.com> | 2022-08-08 12:23:32 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2022-08-08 12:23:32 -0400 |
commit | cb0d9c9c38945404272b89c3c6d8166c194a01f8 (patch) | |
tree | c4aa944a59c189c0b6a0e33b93d4eacc88e0890b | |
parent | cabe5b42cfe408c7bbde8b4bd40ce0282eb7e58c (diff) | |
download | luchie-cb0d9c9c38945404272b89c3c6d8166c194a01f8.tar.gz luchie-cb0d9c9c38945404272b89c3c6d8166c194a01f8.zip |
mark logging functions as unsafe
these are writing to ‘static mut’ variables.
-rwxr-xr-x | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index a711398..48fffea 100755 --- a/src/main.rs +++ b/src/main.rs @@ -54,13 +54,13 @@ fn main(_hartid: usize) -> ! { &mut rcu, ); let (tx, _rx) = serial.split(); - log::new(tx); + unsafe { log::new(tx) }; loop { let mut can_sleep = true; can_sleep &= blink.poll() == PollResult::WouldBlock; - log::log("hi\r\n"); + unsafe { log::log("hi\r\n") }; if can_sleep { unsafe { wfi() }; |