From ca44abece944c698053ac4fd3a3e301dd78025ff Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 11 Apr 2005 02:08:05 +0000 Subject: [PATCH] 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 --- sys/dev/pci/pci.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 008ea8af276..c6eb7d72378 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; } }