summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-09-23 18:13:42 +0000
committerjhb <jhb@FreeBSD.org>2002-09-23 18:13:42 +0000
commitf05f2dae0652e6fcbd1008e2551ec87c4876645f (patch)
tree6cd118f6a0be5e7343dcc9c5e9f4b08a1902f0f8 /sys/i386
parente3273ff5b0022b8d058b3f317c0778568a5c5f11 (diff)
downloadFreeBSD-src-f05f2dae0652e6fcbd1008e2551ec87c4876645f.zip
FreeBSD-src-f05f2dae0652e6fcbd1008e2551ec87c4876645f.tar.gz
Put verbose printf's in the PCI BIOS interrupt routing code under
if (bootverbose).
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/pci/pci_cfgreg.c5
-rw-r--r--sys/i386/pci/pci_pir.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c
index bb25900..536c5a6 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 bb25900..536c5a6 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;
OpenPOWER on IntegriCloud