diff --git a/ihdad/src/main.rs b/ihdad/src/main.rs index 5cba24fd1e..1fac624ae0 100755 --- a/ihdad/src/main.rs +++ b/ihdad/src/main.rs @@ -120,10 +120,12 @@ fn get_int_method(pcid_handle: &mut PcidServerHandle) -> Option { pcid_handle.set_feature_info(SetFeatureInfo::Msi(set_feature_info)).expect("ihdad: failed to set feature info"); pcid_handle.enable_feature(PciFeature::Msi).expect("ihdad: failed to enable MSI"); - log::info!("Enabled MSI"); + log::debug!("Enabled MSI"); Some(interrupt_handle) } else if pci_config.func.legacy_interrupt_pin.is_some() { + log::debug!("Legacy IRQ {}", irq); + // legacy INTx# interrupt pins. Some(File::open(format!("irq:{}", irq)).expect("ihdad: failed to open legacy IRQ file")) } else { @@ -171,7 +173,7 @@ fn daemon(daemon: redox_daemon::Daemon) -> ! { other => panic!("Expected memory bar, found {}", other), }; - eprintln!(" + IHDA {} on: {:#X} size: {}", name, bar_ptr, bar_size); + log::info!(" + IHDA {} on: {:#X} size: {}", name, bar_ptr, bar_size); let address = unsafe { syscall::physmap(bar_ptr as usize, bar_size as usize, PHYSMAP_WRITE | PHYSMAP_NO_CACHE) diff --git a/usbhidd/src/main.rs b/usbhidd/src/main.rs index 045bb8316d..df3f6d60ca 100644 --- a/usbhidd/src/main.rs +++ b/usbhidd/src/main.rs @@ -300,7 +300,7 @@ fn main() { let report_desc = ReportIter::new(ReportFlatIter::new(&report_desc_bytes)).collect::>(); for item in &report_desc { - log::info!("{:?}", item); + log::debug!("{:?}", item); } handle.configure_endpoints(&ConfigureEndpointsReq { config_desc: 0, interface_desc: None, alternate_setting: None }).expect("Failed to configure endpoints"); diff --git a/xhcid/src/main.rs b/xhcid/src/main.rs index 62aa36f4c8..42a378db3d 100644 --- a/xhcid/src/main.rs +++ b/xhcid/src/main.rs @@ -42,7 +42,7 @@ fn setup_logging(name: &str) -> Option<&'static RedoxLogger> { let mut logger = RedoxLogger::new() .with_output( OutputBuilder::stderr() - .with_filter(log::LevelFilter::Debug) // limit global output to important info + .with_filter(log::LevelFilter::Info) // limit global output to important info .with_ansi_escape_codes() .flush_on_newline(true) .build() diff --git a/xhcid/src/xhci/mod.rs b/xhcid/src/xhci/mod.rs index b5e278648c..91e850263d 100644 --- a/xhcid/src/xhci/mod.rs +++ b/xhcid/src/xhci/mod.rs @@ -531,7 +531,7 @@ impl Xhci { let mut input = unsafe { self.alloc_dma_zeroed::()? }; let mut ring = self.address_device(&mut input, i, slot_ty, slot, speed).await?; - info!("Addressed device"); + debug!("Addressed device"); // TODO: Should the descriptors be cached in PortState, or refetched?