summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-11-22 09:09:59 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-11-22 09:09:59 +0000
commite878d2c7cd7fadc43b1d4fd1c039b2dcf1481579 (patch)
treecfd247bbc9e9da29c1c9032e9298cad5f6bfc28b /sys/arch
parent24d075ea846df25e25f173351efb9babbe0e216b (diff)
repair verbose printfs
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/pci/pci_addr_fixup.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/i386/pci/pci_addr_fixup.c b/sys/arch/i386/pci/pci_addr_fixup.c
index 175e640bdfd..63c88142917 100644
--- a/sys/arch/i386/pci/pci_addr_fixup.c
+++ b/sys/arch/i386/pci/pci_addr_fixup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_addr_fixup.c,v 1.15 2005/11/13 14:23:26 martin Exp $ */
+/* $OpenBSD: pci_addr_fixup.c,v 1.16 2005/11/22 09:09:58 mickey Exp $ */
/* $NetBSD: pci_addr_fixup.c,v 1.7 2000/08/03 20:10:45 nathanw Exp $ */
/*-
@@ -302,19 +302,17 @@ pciaddr_do_resource_allocate(sc, pc, tag, mapreg, ex, type, addr, size)
/* write new address to PCI device configuration header */
pci_conf_write(pc, tag, mapreg, *addr);
/* check */
- if (!pcibios_flags & PCIBIOS_VERBOSE)
- {
+ if (pcibios_flags & PCIBIOS_VERBOSE) {
printf("pci_addr_fixup: ");
pciaddr_print_devid(pc, tag);
}
if (pciaddr_ioaddr(pci_conf_read(pc, tag, mapreg)) != *addr) {
pci_conf_write(pc, tag, mapreg, 0); /* clear */
- printf("fixup failed. (new address=%#x)\n", *addr);
+ PCIBIOS_PRINTV(("fixup failed. (new address=%#x)\n", *addr));
return (1);
}
- if (!pcibios_flags & PCIBIOS_VERBOSE)
- printf("new address 0x%08x\n", *addr);
+ PCIBIOS_PRINTV(("new address 0x%08x\n", *addr));
return (0);
}