svn commit: r186294 - head/sys/dev/usb
Andrew Thompson
thompsa at FreeBSD.org
Thu Dec 18 19:15:25 UTC 2008
Author: thompsa
Date: Thu Dec 18 19:15:25 2008
New Revision: 186294
URL: http://svn.freebsd.org/changeset/base/186294
Log:
Fix last commit, ttydisc_rint_bypass returns the total, not remainder.
Modified:
head/sys/dev/usb/ucom.c
Modified: head/sys/dev/usb/ucom.c
==============================================================================
--- head/sys/dev/usb/ucom.c Thu Dec 18 19:09:14 2008 (r186293)
+++ head/sys/dev/usb/ucom.c Thu Dec 18 19:15:25 2008 (r186294)
@@ -708,7 +708,7 @@ ucomrxchars(struct ucom_softc *sc, u_cha
/* Give characters to tty layer. */
if (ttydisc_can_bypass(tp)) {
DPRINTFN(7, ("ucomreadcb: buf = %*D\n", cc, cp, ""));
- cc = ttydisc_rint_bypass(tp, cp, cc);
+ cc -= ttydisc_rint_bypass(tp, cp, cc);
} else {
while (cc > 0) {
DPRINTFN(7, ("ucomreadcb: char = 0x%02x\n", *cp));
More information about the svn-src-head
mailing list