ihda, usbhid, xhci: logging adjustments
This commit is contained in:
+4
-2
@@ -120,10 +120,12 @@ fn get_int_method(pcid_handle: &mut PcidServerHandle) -> Option<File> {
|
||||
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)
|
||||
|
||||
+1
-1
@@ -300,7 +300,7 @@ fn main() {
|
||||
let report_desc = ReportIter::new(ReportFlatIter::new(&report_desc_bytes)).collect::<Vec<_>>();
|
||||
|
||||
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");
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
@@ -531,7 +531,7 @@ impl Xhci {
|
||||
|
||||
let mut input = unsafe { self.alloc_dma_zeroed::<InputContext>()? };
|
||||
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?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user