MFNetBSD:
revision 1.44 date: 2001/09/15 16:16:28; author: yamt; state: Exp; lines: +3 -3 correct debug messages.
This commit is contained in:
parent
cfa8ae4521
commit
7efd0dfe84
@ -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$ */
|
||||
|
||||
/*
|
||||
@ -380,7 +380,7 @@ uhid_intr(usbd_xfer_handle xfer, usbd_private_handle addr, usbd_status status)
|
||||
|
||||
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);
|
||||
@ -491,7 +491,7 @@ uhid_do_read(struct uhid_softc *sc, struct uio *uio, int flag)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user