Source-Changes-HG archive

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

[src/sommerfeld_i386mp_1]: src/sys/arch/i386/pci Enhance debug messages when ...



details:   https://anonhg.NetBSD.org/src/rev/77282884f28d
branches:  sommerfeld_i386mp_1
changeset: 482461:77282884f28d
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Tue Dec 11 23:54:59 2001 +0000

description:
Enhance debug messages when mapping not found.

diffstat:

 sys/arch/i386/pci/pci_machdep.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r f8778cef1dc6 -r 77282884f28d sys/arch/i386/pci/pci_machdep.c
--- a/sys/arch/i386/pci/pci_machdep.c   Tue Dec 11 23:52:07 2001 +0000
+++ b/sys/arch/i386/pci/pci_machdep.c   Tue Dec 11 23:54:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pci_machdep.c,v 1.35.2.8 2001/07/19 08:57:30 sommerfeld Exp $  */
+/*     $NetBSD: pci_machdep.c,v 1.35.2.9 2001/12/11 23:54:59 sommerfeld Exp $  */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -523,10 +523,6 @@
        }
 #if NIOAPIC > 0
        pci_decompose_tag (pc, pa->pa_tag, &bus, &dev, &func);
-#if 0
-       printf("pci_intr_map: bus %d dev %d func %d pin %d; line %d\n",
-           bus, dev, func, pin, line);
-#endif
        if (mp_busses != NULL) {
                /*
                 * Assumes 1:1 mapping between PCI bus numbers and
@@ -542,8 +538,12 @@
                                return 0;
                        }
                }
-               if (mip == NULL)
+               if (mip == NULL) {
+                       printf("pci_intr_map: bus %d dev %d func %d pin %d; line %d\n",
+                           bus, dev, func, pin, line);
+                       
                        printf("pci_intr_map: no MP mapping found\n");
+               }
        }
 #endif
        



Home | Main Index | Thread Index | Old Index