Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/pci fix oversight introduced in previous my co...



details:   https://anonhg.NetBSD.org/src/rev/f7dbdd46aa86
branches:  trunk
changeset: 495628:f7dbdd46aa86
user:      soda <soda%NetBSD.org@localhost>
date:      Wed Aug 02 02:54:41 2000 +0000

description:
fix oversight introduced in previous my commmitment (revision 1.4),
pointed out by Michael Shalayeff <mickey%openbsd.org@localhost>.

diffstat:

 sys/arch/i386/pci/pci_addr_fixup.c |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 267dbf44b7ed -r f7dbdd46aa86 sys/arch/i386/pci/pci_addr_fixup.c
--- a/sys/arch/i386/pci/pci_addr_fixup.c        Wed Aug 02 02:44:06 2000 +0000
+++ b/sys/arch/i386/pci/pci_addr_fixup.c        Wed Aug 02 02:54:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_addr_fixup.c,v 1.5 2000/08/01 05:23:59 uch Exp $   */
+/*     $NetBSD: pci_addr_fixup.c,v 1.6 2000/08/02 02:54:41 soda Exp $  */
 
 /*-
  * Copyright (c) 2000 UCHIYAMA Yasushi.  All rights reserved.
@@ -294,18 +294,22 @@
        /* write new address to PCI device configuration header */
        pci_conf_write(pc, tag, mapreg, *addr);
        /* check */
-#ifndef PCIBIOSVERBOSE
-       if (pcibiosverbose) {
+#ifdef PCIBIOSVERBOSE
+       if (!pcibiosverbose)
+#endif 
+       {
                printf("pci_addr_fixup: ");
                pciaddr_print_devid(pc, tag);
        }
-#endif 
        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", (unsigned)*addr);
                return (1);
        }
-       PCIBIOS_PRINTV(("new address 0x%08x\n", (unsigned)*addr));
+#ifdef PCIBIOSVERBOSE
+       if (!pcibiosverbose)
+#endif
+               printf("new address 0x%08x\n", (unsigned)*addr);
 
        return (0);
 }



Home | Main Index | Thread Index | Old Index