From 8ff25e976304bb32bf986f9b935fc65849641c3a Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 23 Sep 2002 18:13:42 +0000 Subject: [PATCH] Put verbose printf's in the PCI BIOS interrupt routing code under if (bootverbose). --- sys/amd64/pci/pci_cfgreg.c | 5 ++++- sys/i386/pci/pci_cfgreg.c | 5 ++++- sys/i386/pci/pci_pir.c | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c index bb259008939..536c5a6cf20 100644 --- a/sys/amd64/pci/pci_cfgreg.c +++ b/sys/amd64/pci/pci_cfgreg.c @@ -51,7 +51,10 @@ #include "pcib_if.h" -#define PRVERB(a) printf a +#define PRVERB(a) do { \ + if (bootverbose) \ + printf a ; \ +} while(0) static int cfgmech; static int devmax; diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index bb259008939..536c5a6cf20 100644 --- a/sys/i386/pci/pci_cfgreg.c +++ b/sys/i386/pci/pci_cfgreg.c @@ -51,7 +51,10 @@ #include "pcib_if.h" -#define PRVERB(a) printf a +#define PRVERB(a) do { \ + if (bootverbose) \ + printf a ; \ +} while(0) static int cfgmech; static int devmax; diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index bb259008939..536c5a6cf20 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.c @@ -51,7 +51,10 @@ #include "pcib_if.h" -#define PRVERB(a) printf a +#define PRVERB(a) do { \ + if (bootverbose) \ + printf a ; \ +} while(0) static int cfgmech; static int devmax;