diff options
Diffstat (limited to 'sys/dev/usb/urio.c')
-rw-r--r-- | sys/dev/usb/urio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/usb/urio.c b/sys/dev/usb/urio.c index d1d0e25f699..b923c49a536 100644 --- a/sys/dev/usb/urio.c +++ b/sys/dev/usb/urio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: urio.c,v 1.12 2002/07/10 21:41:51 mickey Exp $ */ +/* $OpenBSD: urio.c,v 1.13 2002/07/25 02:18:11 nate Exp $ */ /* $NetBSD: urio.c,v 1.11 2002/02/11 15:11:49 augustss Exp $ */ /* @@ -300,7 +300,7 @@ urioopen(dev_t dev, int flag, int mode, usb_proc_ptr p) USB_GET_SC_OPEN(urio, URIOUNIT(dev), sc); - DPRINTFN(5, ("urioopen: flag=%d, mode=%d, unit=%d\n", + DPRINTFN(5, ("urioopen: flag=%d, mode=%d, unit=%d\n", flag, mode, URIOUNIT(dev))); if (sc->sc_dying) @@ -417,7 +417,7 @@ uriowrite(dev_t dev, struct uio *uio, int flag) USB_GET_SC(urio, URIOUNIT(dev), sc); - DPRINTFN(5, ("uriowrite: unit=%d, len=%ld\n", URIOUNIT(dev), + DPRINTFN(5, ("uriowrite: unit=%d, len=%ld\n", URIOUNIT(dev), (long)uio->uio_resid)); if (sc->sc_dying) @@ -460,7 +460,7 @@ uriowrite(dev_t dev, struct uio *uio, int flag) if (--sc->sc_refcnt < 0) usb_detach_wakeup(USBDEV(sc->sc_dev)); - DPRINTFN(5, ("uriowrite: done unit=%d, error=%d\n", URIOUNIT(dev), + DPRINTFN(5, ("uriowrite: done unit=%d, error=%d\n", URIOUNIT(dev), error)); return (error); @@ -509,7 +509,7 @@ urioioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, usb_proc_ptr p) len = rcmd->length; DPRINTFN(1,("urio_ioctl: cmd=0x%08lx reqtype=0x%0x req=0x%0x " - "value=0x%0x index=0x%0x len=0x%0x\n", + "value=0x%0x index=0x%0x len=0x%0x\n", cmd, requesttype, rcmd->request, rcmd->value, rcmd->index, len)); @@ -530,7 +530,7 @@ urioioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, usb_proc_ptr p) uio.uio_resid = len; uio.uio_offset = 0; uio.uio_segflg = UIO_USERSPACE; - uio.uio_rw = req.bmRequestType & UT_READ ? + uio.uio_rw = req.bmRequestType & UT_READ ? UIO_READ : UIO_WRITE; uio.uio_procp = p; ptr = malloc(len, M_TEMP, M_WAITOK); |