Reduce verbosity of debug logs during booting

These logs are only useful when actively working on the respective driver.
This commit is contained in:
bjorn3
2025-03-15 21:09:12 +01:00
parent 0481ab9ebe
commit fb24979c51
4 changed files with 11 additions and 15 deletions
+5 -5
View File
@@ -10,12 +10,12 @@ pub struct VendorSpecificCapability {
impl VendorSpecificCapability {
pub unsafe fn parse(addr: PciCapabilityAddress, access: &dyn ConfigRegionAccess) -> Self {
let dword = access.read(addr.address, addr.offset);
let next = (dword >> 8) & 0xFF;
let length = ((dword >> 16) & 0xFF) as u16;
log::info!(
"Vendor specific offset: {:#02x} next: {next:#02x} cap len: {length:#02x}",
addr.offset
);
// let next = (dword >> 8) & 0xFF;
// log::trace!(
// "Vendor specific offset: {:#02x} next: {next:#02x} cap len: {length:#02x}",
// addr.offset
// );
let data = if length > 0 {
assert!(
length > 3 && length % 4 == 0,