svn commit: r186097 - head/sys/dev/usb

Poul-Henning Kamp phk at FreeBSD.org
Sun Dec 14 23:24:01 UTC 2008


Author: phk
Date: Sun Dec 14 23:24:00 2008
New Revision: 186097
URL: http://svn.freebsd.org/changeset/base/186097

Log:
  Make the tp pointer available for debugging.

Modified:
  head/sys/dev/usb/ucom.c

Modified: head/sys/dev/usb/ucom.c
==============================================================================
--- head/sys/dev/usb/ucom.c	Sun Dec 14 23:12:36 2008	(r186096)
+++ head/sys/dev/usb/ucom.c	Sun Dec 14 23:24:00 2008	(r186097)
@@ -724,10 +724,12 @@ static void
 ucomreadcb(usbd_xfer_handle xfer, usbd_private_handle p, usbd_status status)
 {
 	struct ucom_softc *sc = (struct ucom_softc *)p;
+	struct tty *tp = sc->sc_tty;
 	usbd_status err;
 	u_int32_t cc;
 	u_char *cp;
 
+	(void)tp;	/* Used for debugging */
 	DPRINTF(("ucomreadcb: status = %d\n", status));
 
 	if (status != USBD_NORMAL_COMPLETION) {


More information about the svn-src-all mailing list