Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons Improve debug messages a little.



details:   https://anonhg.NetBSD.org/src/rev/05912f492a52
branches:  trunk
changeset: 516938:05912f492a52
user:      augustss <augustss%NetBSD.org@localhost>
date:      Fri Nov 02 13:02:20 2001 +0000

description:
Improve debug messages a little.

diffstat:

 sys/dev/wscons/wsmouse.c |   9 ++++++---
 sys/dev/wscons/wsmux.c   |  14 +++++++++-----
 2 files changed, 15 insertions(+), 8 deletions(-)

diffs (94 lines):

diff -r dfda05120300 -r 05912f492a52 sys/dev/wscons/wsmouse.c
--- a/sys/dev/wscons/wsmouse.c  Fri Nov 02 08:05:48 2001 +0000
+++ b/sys/dev/wscons/wsmouse.c  Fri Nov 02 13:02:20 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsmouse.c,v 1.18 2001/10/25 14:46:41 augustss Exp $ */
+/* $NetBSD: wsmouse.c,v 1.19 2001/11/02 13:02:20 augustss Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsmouse.c,v 1.18 2001/10/25 14:46:41 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsmouse.c,v 1.19 2001/11/02 13:02:20 augustss Exp $");
 
 /*
  * Copyright (c) 1992, 1993
@@ -246,8 +246,10 @@
 
 #if NWSMUX > 0
        /* Tell parent mux we're leaving. */
-       if (sc->sc_base.me_parent != NULL)
+       if (sc->sc_base.me_parent != NULL) {
+               DPRINTF(("wsmouse_detach:\n"));
                wsmux_detach_sc(&sc->sc_base);
+       }
 #endif
 
        /* If we're open ... */
@@ -459,6 +461,7 @@
 #if NWSMUX > 0
        if (sc->sc_base.me_parent != NULL)
                /* Grab the mouse out of the greedy hands of the mux. */
+               DPRINTF(("wsmouseopen: detach\n"));
                wsmux_detach_sc(&sc->sc_base);
 #endif
 
diff -r dfda05120300 -r 05912f492a52 sys/dev/wscons/wsmux.c
--- a/sys/dev/wscons/wsmux.c    Fri Nov 02 08:05:48 2001 +0000
+++ b/sys/dev/wscons/wsmux.c    Fri Nov 02 13:02:20 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsmux.c,v 1.21 2001/10/29 01:02:11 augustss Exp $      */
+/*     $NetBSD: wsmux.c,v 1.22 2001/11/02 13:02:20 augustss Exp $      */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -203,6 +203,7 @@
 
        if (sc->sc_base.me_parent != NULL) {
                /* Grab the mux out of the greedy hands of the parent mux. */
+               DPRINTF(("wsmuxopen: detach\n"));
                wsmux_detach_sc(&sc->sc_base);
        }
 
@@ -452,6 +453,7 @@
                CIRCLEQ_FOREACH(me, &sc->sc_cld, me_next) {
                        if (me->me_ops->type == d->type &&
                            me->me_dv.dv_unit == d->idx) {
+                               DPRINTF(("wsmux_do_ioctl: detach\n"));
                                wsmux_detach_sc(me);
                                return (0);
                        }
@@ -612,8 +614,8 @@
        if (sc == NULL)
                return (EINVAL);
 
-       DPRINTF(("wsmux_attach_sc: %s: type=%d\n",
-                sc->sc_base.me_dv.dv_xname, me->me_ops->type));
+       DPRINTF(("wsmux_attach_sc: %s(%p): type=%d\n",
+                sc->sc_base.me_dv.dv_xname, sc, me->me_ops->type));
 
 #ifdef DIAGNOSTIC
        if (me->me_parent != NULL) {
@@ -661,7 +663,8 @@
                CIRCLEQ_REMOVE(&sc->sc_cld, me, me_next);
        }
 
-       DPRINTF(("wsmux_attach_sc: done sc=%p, error=%d\n", sc, error));
+       DPRINTF(("wsmux_attach_sc: %s(%p) done, error=%d\n", 
+                sc->sc_base.me_dv.dv_xname, sc, error));
        return (error);
 }
 
@@ -671,7 +674,8 @@
 {
        struct wsmux_softc *sc = me->me_parent;
 
-       DPRINTF(("wsmux_detach_sc: %s\n", sc->sc_base.me_dv.dv_xname));
+       DPRINTF(("wsmux_detach_sc: %s(%p) parent=%p\n", 
+                me->me_dv.dv_xname, me, sc));
 
 #ifdef DIAGNOSTIC
        if (sc == NULL) {



Home | Main Index | Thread Index | Old Index