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/sbus Pull up revision 1.16 (requested by pk):



details:   https://anonhg.NetBSD.org/src/rev/07ff4cca9152
branches:  netbsd-1-5
changeset: 492596:07ff4cca9152
user:      he <he%NetBSD.org@localhost>
date:      Tue Jan 22 19:53:11 2002 +0000

description:
Pull up revision 1.16 (requested by pk):
  Make all debugging messages conditional on sc->sc_debug.

diffstat:

 sys/dev/sbus/qe.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 29b379ef0cd3 -r 07ff4cca9152 sys/dev/sbus/qe.c
--- a/sys/dev/sbus/qe.c Tue Jan 22 19:52:06 2002 +0000
+++ b/sys/dev/sbus/qe.c Tue Jan 22 19:53:11 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: qe.c,v 1.10.4.1 2000/07/19 02:53:07 mrg Exp $  */
+/*     $NetBSD: qe.c,v 1.10.4.2 2002/01/22 19:53:11 he Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -635,9 +635,12 @@
 
        if (qestat & QE_CR_STAT_ALLERRORS) {
 #ifdef QEDEBUG
-               char bits[64];
-               printf("qe%d: eint: qestat=%s\n", sc->sc_channel,
-               bitmask_snprintf(qestat, QE_CR_STAT_BITS, bits, sizeof(bits)));
+               if (sc->sc_debug) {
+                       char bits[64];
+                       printf("qe%d: eint: qestat=%s\n", sc->sc_channel,
+                           bitmask_snprintf(qestat, QE_CR_STAT_BITS, bits,
+                           sizeof(bits)));
+               }
 #endif
                r |= qe_eint(sc, qestat);
                if (r == -1)
@@ -733,7 +736,7 @@
                        bix = 0;
        }
 #ifdef QEDEBUG
-       if (npackets == 0)
+       if (npackets == 0 && sc->sc_debug)
                printf("%s: rint: no packets; rb index %d; status 0x%x\n",
                        sc->sc_dev.dv_xname, bix, len);
 #endif



Home | Main Index | Thread Index | Old Index