From 12aae668660f6f94222c2b63e42a20cda9bcfb84 Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 24 Aug 2021 11:44:30 +0000 Subject: [PATCH] Fix compilation with debug enabled. ok kettenis@ --- sys/dev/acpi/acpidmar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/acpi/acpidmar.c b/sys/dev/acpi/acpidmar.c index a0b263fbe4c..dec82964168 100644 --- a/sys/dev/acpi/acpidmar.c +++ b/sys/dev/acpi/acpidmar.c @@ -64,7 +64,7 @@ #ifdef IOMMU_DEBUG int acpidmar_dbg_lvl = 0; -#define DPRINTF(lvl,x...) if (acpidmar_dbg_lvl >= lvl) { printf(x) } +#define DPRINTF(lvl,x...) if (acpidmar_dbg_lvl >= lvl) { printf(x); } #else #define DPRINTF(lvl,x...) #endif @@ -2307,8 +2307,8 @@ ivhd_iommu_init(struct acpidmar_softc *sc, struct iommu_softc *iommu, printf(": AMD iommu%d at 0x%.8llx\n", iommu->id, ivhd->address); iommu->ecap = iommu_read_8(iommu, EXTFEAT_REG); - DPRINTF("iommu%d: ecap:%.16llx ", iommu->id, iommu->ecap); - DPRINTF("%s%s%s%s%s%s%s%s\n", + DPRINTF(0,"iommu%d: ecap:%.16llx ", iommu->id, iommu->ecap); + DPRINTF(0,"%s%s%s%s%s%s%s%s\n", iommu->ecap & EFR_PREFSUP ? "pref " : "", iommu->ecap & EFR_PPRSUP ? "ppr " : "", iommu->ecap & EFR_NXSUP ? "nx " : "", -- 2.20.1