From e628928dca3bbad9231bf9f2f29bcbc5a9b9b089 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 15 Oct 2020 15:39:50 +0800 Subject: [PATCH] fix logging --- src/firmware/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/firmware/src/main.rs b/src/firmware/src/main.rs index cff090b..bfdb8cf 100644 --- a/src/firmware/src/main.rs +++ b/src/firmware/src/main.rs @@ -7,7 +7,7 @@ use core::{cmp, str}; use log::{info, warn}; use libcortex_a9::asm; -use libboard_zynq::{timer::GlobalTimer, slcr}; +use libboard_zynq::{timer::GlobalTimer, logger, slcr}; use libsupport_zynq::ram; use libconfig::Config; use libregister::RegisterW; @@ -55,6 +55,7 @@ fn identifier_read(buf: &mut [u8]) -> &str { #[no_mangle] pub fn main_core0() { let mut timer = GlobalTimer::start(); + logger::init().unwrap(); log::set_max_level(log::LevelFilter::Info); info!("Rust Pitaya firmware starting...");