Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/dev/pci Pull up revision 1.30 (requested by jlam):



details:   https://anonhg.NetBSD.org/src/rev/a8b6f2f14503
branches:  netbsd-1-5
changeset: 492662:a8b6f2f14503
user:      he <he%NetBSD.org@localhost>
date:      Wed Feb 06 14:07:27 2002 +0000

description:
Pull up revision 1.30 (requested by jlam):
  Move stray debugging message to only occur in debug mode.

diffstat:

 sys/dev/pci/ahc_pci.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r d3e069561aea -r a8b6f2f14503 sys/dev/pci/ahc_pci.c
--- a/sys/dev/pci/ahc_pci.c     Wed Feb 06 14:04:46 2002 +0000
+++ b/sys/dev/pci/ahc_pci.c     Wed Feb 06 14:07:27 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ahc_pci.c,v 1.24.4.1 2000/09/05 01:00:25 soren Exp $   */
+/*     $NetBSD: ahc_pci.c,v 1.24.4.2 2002/02/06 14:07:27 he Exp $      */
 
 /*
  * Product specific probe and attach routines for:
@@ -724,7 +724,10 @@
                sfunct = ahc_inb(ahc, SFUNCT) & ~ALT_MODE;
                ahc_outb(ahc, SFUNCT, sfunct | ALT_MODE);
                optionmode = ahc_inb(ahc, OPTIONMODE);
-               printf("OptionMode = %x\n", optionmode);
+#ifdef DEBUG
+               printf("%s: OptionMode = %x\n", ahc->sc_dev.dv_xname,
+                   optionmode);
+#endif
                ahc_outb(ahc, OPTIONMODE, OPTIONMODE_DEFAULTS);
                /* Send CRC info in target mode every 4K */
                ahc_outb(ahc, TARGCRCCNT, 0);



Home | Main Index | Thread Index | Old Index