summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_pci.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-09 21:32:02 +0000
committerimp <imp@FreeBSD.org>2002-02-09 21:32:02 +0000
commit79276058c84c47e640e3036a9d0c782db8d0d83d (patch)
tree37f6ac3dfefa5bf97e42a8b91d1cf310023675e7 /sys/dev/pci/pci_pci.c
parent1fd7d64d57bb494c5cf7e2ebcc391c561f252eb7 (diff)
downloadFreeBSD-src-79276058c84c47e640e3036a9d0c782db8d0d83d.zip
FreeBSD-src-79276058c84c47e640e3036a9d0c782db8d0d83d.tar.gz
Make unsupported memory range message bootverbose only
Diffstat (limited to 'sys/dev/pci/pci_pci.c')
-rw-r--r--sys/dev/pci/pci_pci.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index 03d5ef4..9c1de44 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -329,10 +329,13 @@ pcib_alloc_resource(device_t dev, device_t child, int type, int *rid,
if (!pcib_is_isa_mem(start) &&
(((start < sc->membase) || (end > sc->memlimit)) &&
((start < sc->pmembase) || (end > sc->pmemlimit)))) {
- device_printf(dev, "device %s%d requested unsupported memory range 0x%lx-0x%lx"
- " (decoding 0x%x-0x%x, 0x%x-0x%x)\n",
- device_get_name(child), device_get_unit(child), start, end,
- sc->membase, sc->memlimit, sc->pmembase, sc->pmemlimit);
+ if (bootverbose)
+ device_printf(dev,
+ "device %s%d requested unsupported memory range "
+ "0x%lx-0x%lx (decoding 0x%x-0x%x, 0x%x-0x%x)\n",
+ device_get_name(child), device_get_unit(child), start,
+ end, sc->membase, sc->memlimit, sc->pmembase,
+ sc->pmemlimit);
#ifndef PCI_ALLOW_UNSUPPORTED_IO_RANGE
return(NULL);
#endif
OpenPOWER on IntegriCloud