From 9548c592a3af8b12bf23f1cb7fe60b62fbbd0500 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 23 Jul 2024 09:09:08 +0300 Subject: [PATCH] Kernel: Always print basic info about xHCI controller Its nice to see that the controller is getting initalized --- kernel/kernel/USB/XHCI/Controller.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/kernel/USB/XHCI/Controller.cpp b/kernel/kernel/USB/XHCI/Controller.cpp index 9b30ab94..6c503d2a 100644 --- a/kernel/kernel/USB/XHCI/Controller.cpp +++ b/kernel/kernel/USB/XHCI/Controller.cpp @@ -75,7 +75,7 @@ namespace Kernel BAN::ErrorOr XHCIController::initialize_impl() { - dprintln_if(DEBUG_XHCI, "XHCI controller at PCI {2H}:{2H}:{2H}", m_pci_device.bus(), m_pci_device.dev(), m_pci_device.func()); + dprintln("XHCI controller at PCI {2H}:{2H}:{2H}", m_pci_device.bus(), m_pci_device.dev(), m_pci_device.func()); m_pci_device.enable_bus_mastering(); m_pci_device.enable_memory_space(); @@ -94,14 +94,14 @@ namespace Kernel } auto& capabilities = capability_regs(); - dprintln_if(DEBUG_XHCI, " version {H}.{H}.{H}", + dprintln(" version {H}.{H}.{H}", +capabilities.major_revision, capabilities.minor_revision >> 4, capabilities.minor_revision & 0x0F ); - dprintln_if(DEBUG_XHCI, " max slots {}", +capabilities.hcsparams1.max_slots); - dprintln_if(DEBUG_XHCI, " max intrs {}", +capabilities.hcsparams1.max_interrupters); - dprintln_if(DEBUG_XHCI, " max ports {}", +capabilities.hcsparams1.max_ports); + dprintln(" max slots {}", +capabilities.hcsparams1.max_slots); + dprintln(" max intrs {}", +capabilities.hcsparams1.max_interrupters); + dprintln(" max ports {}", +capabilities.hcsparams1.max_ports); TRY(m_slots.resize(capabilities.hcsparams1.max_slots)); TRY(m_ports.resize(capabilities.hcsparams1.max_ports));