Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb correct debug messages.



details:   https://anonhg.NetBSD.org/src/rev/7373c6d8982b
branches:  trunk
changeset: 514995:7373c6d8982b
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Sep 15 16:16:27 2001 +0000

description:
correct debug messages.

diffstat:

 sys/dev/usb/ugen.c |  6 +++---
 sys/dev/usb/uhid.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 83ef0e96b90d -r 7373c6d8982b sys/dev/usb/ugen.c
--- a/sys/dev/usb/ugen.c        Sat Sep 15 16:12:54 2001 +0000
+++ b/sys/dev/usb/ugen.c        Sat Sep 15 16:16:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ugen.c,v 1.45 2000/12/13 04:05:14 augustss Exp $       */
+/*     $NetBSD: ugen.c,v 1.46 2001/09/15 16:16:27 yamt Exp $   */
 /*     $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $       */
 
 /*
@@ -516,7 +516,7 @@
                                return (EWOULDBLOCK);
                        }
                        sce->state |= UGEN_ASLP;
-                       DPRINTFN(5, ("ugenread: sleep on %p\n", sc));
+                       DPRINTFN(5, ("ugenread: sleep on %p\n", sce));
                        error = tsleep(sce, PZERO | PCATCH, "ugenri", 0);
                        DPRINTFN(5, ("ugenread: woke, error=%d\n", error));
                        if (sc->sc_dying)
@@ -580,7 +580,7 @@
                                return (EWOULDBLOCK);
                        }
                        sce->state |= UGEN_ASLP;
-                       DPRINTFN(5, ("ugenread: sleep on %p\n", sc));
+                       DPRINTFN(5, ("ugenread: sleep on %p\n", sce));
                        error = tsleep(sce, PZERO | PCATCH, "ugenri", 0);
                        DPRINTFN(5, ("ugenread: woke, error=%d\n", error));
                        if (sc->sc_dying)
diff -r 83ef0e96b90d -r 7373c6d8982b sys/dev/usb/uhid.c
--- a/sys/dev/usb/uhid.c        Sat Sep 15 16:12:54 2001 +0000
+++ b/sys/dev/usb/uhid.c        Sat Sep 15 16:16:27 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhid.c,v 1.43 2001/08/15 00:06:49 augustss Exp $       */
+/*     $NetBSD: uhid.c,v 1.44 2001/09/15 16:16:28 yamt Exp $   */
 /*     $FreeBSD: src/sys/dev/usb/uhid.c,v 1.22 1999/11/17 22:33:43 n_hibma Exp $       */
 
 /*
@@ -368,7 +368,7 @@
                
        if (sc->sc_state & UHID_ASLP) {
                sc->sc_state &= ~UHID_ASLP;
-               DPRINTFN(5, ("uhid_intr: waking %p\n", sc));
+               DPRINTFN(5, ("uhid_intr: waking %p\n", &sc->sc_q));
                wakeup(&sc->sc_q);
        }
        selwakeup(&sc->sc_rsel);
@@ -476,7 +476,7 @@
                        return (EWOULDBLOCK);
                }
                sc->sc_state |= UHID_ASLP;
-               DPRINTFN(5, ("uhidread: sleep on %p\n", sc));
+               DPRINTFN(5, ("uhidread: sleep on %p\n", &sc->sc_q));
                error = tsleep(&sc->sc_q, PZERO | PCATCH, "uhidrea", 0);
                DPRINTFN(5, ("uhidread: woke, error=%d\n", error));
                if (sc->sc_dying)



Home | Main Index | Thread Index | Old Index