diff options
author | Warner Losh <imp@FreeBSD.org> | 2005-04-11 02:08:05 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2005-04-11 02:08:05 +0000 |
commit | ca44abece944c698053ac4fd3a3e301dd78025ff (patch) | |
tree | d7f3ca5c031ac9ca4fa07dea2b0ace4bdd5ae81d /sys/dev/pci/pci.c | |
parent | 2005d17979e4bbb9d91724466f3d3b97aa05abca (diff) | |
download | src-ca44abece944c698053ac4fd3a3e301dd78025ff.tar.gz src-ca44abece944c698053ac4fd3a3e301dd78025ff.zip |
It isn't a whinable offence to want memory when the bar says ioport.
Put that behind bootverbose to make the ata driver less chatty on
advanced hardware.
Requested by: sos
Notes
Notes:
svn path=/head/; revision=144890
Diffstat (limited to 'sys/dev/pci/pci.c')
-rw-r--r-- | sys/dev/pci/pci.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 008ea8af276b..c6eb7d723781 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1629,16 +1629,18 @@ pci_alloc_map(device_t dev, device_t child, int type, int *rid, return (NULL); if (pci_maptype(testval) & PCI_MAPMEM) { if (type != SYS_RES_MEMORY) { - device_printf(child, - "failed: rid %#x is memory, requested %d\n", - *rid, type); + if (bootverbose) + device_printf(child, + "rid %#x is memory, requested %d\n", + *rid, type); goto out; } } else { if (type != SYS_RES_IOPORT) { - device_printf(child, - "failed: rid %#x is ioport, requested %d\n", - *rid, type); + if (bootverbose) + device_printf(child, + "rid %#x is ioport, requested %d\n", + *rid, type); goto out; } } |