diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-11-21 17:22:30 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-11-21 17:22:30 +0000 |
commit | d1dec864e4e1fe680c428c642401fb3b163f137c (patch) | |
tree | 45a2f52de2d7737137f13b07ceb5a06503d24c30 /sys | |
parent | f4b7f8d09b4a52e7744e3b676115d1e1b5dfe30e (diff) | |
download | FreeBSD-src-d1dec864e4e1fe680c428c642401fb3b163f137c.zip FreeBSD-src-d1dec864e4e1fe680c428c642401fb3b163f137c.tar.gz |
Enclosed the arguments of binary and in brackets.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/usb.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index ef37b4e..80b235b 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -521,10 +521,12 @@ usbpoll(dev, events, p) mask = POLLIN | POLLRDNORM; s = splusb(); - if (events & mask && usb_nevents > 0) + if ((events & mask) && usb_nevents > 0) revents |= events & mask; - if (revents == 0 && events & mask) + if (revents == 0 && (events & mask)) { + DPRINTF(("usb: sleeping on %p\n", &usb_selevent)); selrecord(p, &usb_selevent); + } splx(s); return (revents); @@ -539,9 +541,9 @@ usbpoll(dev, events, p) mask = POLLOUT | POLLRDNORM; s = splusb(); - if (events & mask && sc->sc_bus->needs_explore) + if ((events & mask) && sc->sc_bus->needs_explore) revents |= events & mask; - if (revents == 0 && events & mask) + if (revents == 0 && (events & mask)) selrecord(p, &sc->sc_consel); splx(s); @@ -629,7 +631,7 @@ usbd_add_event(type, dev) s = splusb(); if (++usb_nevents >= USB_MAX_EVENTS) { /* Too many queued events, drop an old one. */ - DPRINTFN(-1,("usb: event dropped\n")); + DPRINTF(("usb: event dropped\n")); (void)usb_get_next_event(&ue); } /* Don't want to wait here inside splusb() */ |