From b6247f409d66c265505e65d13b3de10020e56c08 Mon Sep 17 00:00:00 2001 From: mwojcik Date: Mon, 29 May 2023 10:03:44 +0800 Subject: [PATCH] analyzer: fix warnings on standalone --- src/runtime/src/analyzer.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/runtime/src/analyzer.rs b/src/runtime/src/analyzer.rs index 4eb3268b..9fcc60ac 100644 --- a/src/runtime/src/analyzer.rs +++ b/src/runtime/src/analyzer.rs @@ -1,11 +1,13 @@ -use alloc::{rc::Rc, vec::Vec}; +use alloc::rc::Rc; +#[cfg(has_drtio)] +use alloc::vec::Vec; use core::cell::RefCell; use libasync::{smoltcp::TcpStream, task}; use libboard_artiq::drtio_routing; use libboard_zynq::{smoltcp::Error, timer::GlobalTimer}; use libcortex_a9::{cache, mutex::Mutex}; -use log::{debug, error, info, warn}; +use log::{debug, info, warn}; use crate::{pl, proto_async::*}; @@ -147,7 +149,7 @@ async fn handle_connection( remote.data, ), Err(e) => { - error!("Error getting remote analyzer data: {}", e); + warn!("Error getting remote analyzer data: {}", e); ( Header { total_byte_count: total_byte_count,