From 271a1adb04c68198e5644dd2524f6de9a8e21983 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 4 Apr 2023 11:17:26 +0800 Subject: [PATCH] firmware: improve RTIO map error reporting --- src/runtime/src/rtio_mgt.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/src/rtio_mgt.rs b/src/runtime/src/rtio_mgt.rs index bce720f..d8d91c6 100644 --- a/src/runtime/src/rtio_mgt.rs +++ b/src/runtime/src/rtio_mgt.rs @@ -535,8 +535,8 @@ fn read_device_map(cfg: &Config) -> BTreeMap { let channel = bytes_cr.read_u32().unwrap(); let device_name = bytes_cr.read_string().unwrap(); if let Some(old_entry) = device_map.insert(channel, device_name.clone()) { - error!( - "read_device_map: conflicting entries for channel {}: `{}` and `{}`", + warn!( + "conflicting device map entries for RTIO channel {}: '{}' and '{}'", channel, old_entry, device_name ); } @@ -544,7 +544,7 @@ fn read_device_map(cfg: &Config) -> BTreeMap { Ok(()) }) .or_else(|err| { - error!("read_device_map: error reading `device_map` from config: {}", err); + warn!("error reading device map ({}), device names will not be available in RTIO error messages", err); Err(err) }); device_map