From a37932521cef8a5ffc9a50e252efa91ebb1a601e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 16 Oct 2000 07:31:13 +0000 Subject: [PATCH] Remove debug writes introduced in prior commit --- sys/amd64/pci/pci_cfgreg.c | 7 ++----- sys/i386/pci/pci_cfgreg.c | 7 ++----- sys/i386/pci/pci_pir.c | 7 ++----- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c index e0b8d742ab74..0de51ed02a75 100644 --- a/sys/amd64/pci/pci_cfgreg.c +++ b/sys/amd64/pci/pci_cfgreg.c @@ -140,17 +140,14 @@ pci_cfgintr(int bus, int device, int pin) struct PIR_entry *pe; int i; - if ((bus < 0) || (bus > 255) || (device < 0) || (device > 255) || (pin < 1) || (pin > 4)) { - printf("bus %d pin %d device %d, returning 255\n", bus, pin, device); + if ((bus < 0) || (bus > 255) || (device < 0) || (device > 255) || + (pin < 1) || (pin > 4)) return(255); - } /* * Scan the entry table for a contender */ - printf("bus %d device %d\n", bus, device); for (i = 0, pe = pci_route_table; i < pci_route_count; i++, pe++) { - printf("pe_bus %d pe_device %d\n", pe->pe_bus, pe->pe_device); if ((bus != pe->pe_bus) || (device != pe->pe_device)) continue; if (!powerof2(pe->pe_intpin[pin - 1].irqs)) { diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index e0b8d742ab74..0de51ed02a75 100644 --- a/sys/i386/pci/pci_cfgreg.c +++ b/sys/i386/pci/pci_cfgreg.c @@ -140,17 +140,14 @@ pci_cfgintr(int bus, int device, int pin) struct PIR_entry *pe; int i; - if ((bus < 0) || (bus > 255) || (device < 0) || (device > 255) || (pin < 1) || (pin > 4)) { - printf("bus %d pin %d device %d, returning 255\n", bus, pin, device); + if ((bus < 0) || (bus > 255) || (device < 0) || (device > 255) || + (pin < 1) || (pin > 4)) return(255); - } /* * Scan the entry table for a contender */ - printf("bus %d device %d\n", bus, device); for (i = 0, pe = pci_route_table; i < pci_route_count; i++, pe++) { - printf("pe_bus %d pe_device %d\n", pe->pe_bus, pe->pe_device); if ((bus != pe->pe_bus) || (device != pe->pe_device)) continue; if (!powerof2(pe->pe_intpin[pin - 1].irqs)) { diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index e0b8d742ab74..0de51ed02a75 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.c @@ -140,17 +140,14 @@ pci_cfgintr(int bus, int device, int pin) struct PIR_entry *pe; int i; - if ((bus < 0) || (bus > 255) || (device < 0) || (device > 255) || (pin < 1) || (pin > 4)) { - printf("bus %d pin %d device %d, returning 255\n", bus, pin, device); + if ((bus < 0) || (bus > 255) || (device < 0) || (device > 255) || + (pin < 1) || (pin > 4)) return(255); - } /* * Scan the entry table for a contender */ - printf("bus %d device %d\n", bus, device); for (i = 0, pe = pci_route_table; i < pci_route_count; i++, pe++) { - printf("pe_bus %d pe_device %d\n", pe->pe_bus, pe->pe_device); if ((bus != pe->pe_bus) || (device != pe->pe_device)) continue; if (!powerof2(pe->pe_intpin[pin - 1].irqs)) {