From be06edd3edac94406a5b121c151d72fa493a0ae1 Mon Sep 17 00:00:00 2001 From: Gustavo Romero Date: Sun, 4 May 2025 21:56:39 +0000 Subject: [PATCH] hw/acpi/ich9: Remove ICH9_DEBUG macro Remove the ICH9_DEBUG macro, which is only used to dump the value of the pm_io_base parameter, passed to ich9_pm_iospace_update(). It provides little to no value and is not worth converting to a trace event. Signed-off-by: Gustavo Romero Reviewed-by: Michael Tokarev Signed-off-by: Michael Tokarev --- hw/acpi/ich9.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index c7a735bf64..9c0b7437b7 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -41,15 +41,6 @@ #include "hw/mem/pc-dimm.h" #include "hw/mem/nvdimm.h" -//#define DEBUG - -#ifdef DEBUG -#define ICH9_DEBUG(fmt, ...) \ -do { printf("%s "fmt, __func__, ## __VA_ARGS__); } while (0) -#else -#define ICH9_DEBUG(fmt, ...) do { } while (0) -#endif - static void ich9_pm_update_sci_fn(ACPIREGS *regs) { ICH9LPCPMRegs *pm = container_of(regs, ICH9LPCPMRegs, acpi_regs); @@ -135,8 +126,6 @@ static const MemoryRegionOps ich9_smi_ops = { void ich9_pm_iospace_update(ICH9LPCPMRegs *pm, uint32_t pm_io_base) { - ICH9_DEBUG("to 0x%x\n", pm_io_base); - assert((pm_io_base & ICH9_PMIO_MASK) == 0); pm->pm_io_base = pm_io_base; -- 2.39.5