From e070abc7cb5fb4257f3b714644ad7686ad86872f Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 12 Apr 2024 10:37:42 -0600 Subject: [PATCH] Fix network device logging paths --- net/rtl8139d/src/main.rs | 4 ++-- net/rtl8168d/src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/rtl8139d/src/main.rs b/net/rtl8139d/src/main.rs index 113b395e2c..b04e5a7829 100644 --- a/net/rtl8139d/src/main.rs +++ b/net/rtl8139d/src/main.rs @@ -34,7 +34,7 @@ fn setup_logging() -> Option<&'static RedoxLogger> { ); #[cfg(target_os = "redox")] - match OutputBuilder::in_redox_logging_scheme("usb", "host", "rtl8139.log") { + match OutputBuilder::in_redox_logging_scheme("net", "pcie", "rtl8139.log") { Ok(b) => logger = logger.with_output( // TODO: Add a configuration file for this b.with_filter(log::LevelFilter::Info) @@ -45,7 +45,7 @@ fn setup_logging() -> Option<&'static RedoxLogger> { } #[cfg(target_os = "redox")] - match OutputBuilder::in_redox_logging_scheme("usb", "host", "rtl8139.ansi.log") { + match OutputBuilder::in_redox_logging_scheme("net", "pcie", "rtl8139.ansi.log") { Ok(b) => logger = logger.with_output( b.with_filter(log::LevelFilter::Info) .with_ansi_escape_codes() diff --git a/net/rtl8168d/src/main.rs b/net/rtl8168d/src/main.rs index 7127effb52..e2d594948e 100644 --- a/net/rtl8168d/src/main.rs +++ b/net/rtl8168d/src/main.rs @@ -29,7 +29,7 @@ fn setup_logging() -> Option<&'static RedoxLogger> { ); #[cfg(target_os = "redox")] - match OutputBuilder::in_redox_logging_scheme("usb", "host", "rtl8168.log") { + match OutputBuilder::in_redox_logging_scheme("net", "pcie", "rtl8168.log") { Ok(b) => logger = logger.with_output( // TODO: Add a configuration file for this b.with_filter(log::LevelFilter::Info) @@ -40,7 +40,7 @@ fn setup_logging() -> Option<&'static RedoxLogger> { } #[cfg(target_os = "redox")] - match OutputBuilder::in_redox_logging_scheme("usb", "host", "rtl8168.ansi.log") { + match OutputBuilder::in_redox_logging_scheme("net", "pcie", "rtl8168.ansi.log") { Ok(b) => logger = logger.with_output( b.with_filter(log::LevelFilter::Info) .with_ansi_escape_codes()