summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/pci/pci_cfgreg.c5
-rw-r--r--sys/i386/pci/pci_cfgreg.c5
-rw-r--r--sys/i386/pci/pci_pir.c5
3 files changed, 12 insertions, 3 deletions
diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c
index bb25900..536c5a6 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 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