From 641feb01b1b0f6376c06aa3eb4454231dcf891e1 Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Sat, 13 Mar 2021 12:40:26 +0100 Subject: [PATCH] Print parsed tables only with debug verbosity. --- acpid/src/acpi.rs | 2 +- acpid/src/aml/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acpid/src/acpi.rs b/acpid/src/acpi.rs index d2cdd9c295..f798567873 100644 --- a/acpid/src/acpi.rs +++ b/acpid/src/acpi.rs @@ -455,7 +455,7 @@ impl Fadt { .expect("expected any given u32 to fit within usize") }; - log::info!(" FACP: {:X}", {dsdt_ptr}); + log::debug!("FACP at {:X}", {dsdt_ptr}); let dsdt_sdt = match Sdt::load_from_physical(fadt.dsdt as usize) { Ok(dsdt) => dsdt, diff --git a/acpid/src/aml/mod.rs b/acpid/src/aml/mod.rs index b48797e493..91d90be619 100644 --- a/acpid/src/aml/mod.rs +++ b/acpid/src/aml/mod.rs @@ -51,7 +51,7 @@ pub fn parse_aml_with_scope(acpi_ctx: &AcpiContext, sdt: impl AmlContainingTable fn init_aml_table(acpi_ctx: &AcpiContext, sdt: impl AmlContainingTable) { match parse_aml_table(acpi_ctx, &sdt) { - Ok(_) => log::info!("Table {} parsed successfully", sdt.header().signature()), + Ok(_) => log::debug!("Table {} parsed successfully", sdt.header().signature()), Err(AmlError::AmlParseError(e)) => log::error!("Table {} got parse error: {}", sdt.header().signature(), e), Err(AmlError::AmlInvalidOpCode) => log::error!("Table {} got invalid opcode", sdt.header().signature()), Err(AmlError::AmlValueError) => log::error!("For table {}: type constraints or value bounds not met", sdt.header().signature()), @@ -69,7 +69,7 @@ fn init_aml_table(acpi_ctx: &AcpiContext, sdt: impl AmlContainingTable) { pub fn init_namespace(context: &AcpiContext) { let dsdt = context.dsdt().expect("could not find any DSDT"); - log::info!("Found DSDT."); + log::debug!("Found DSDT."); init_aml_table(context, dsdt); let ssdts = context.ssdts();