summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2008-12-14 23:24:00 +0000
committerphk <phk@FreeBSD.org>2008-12-14 23:24:00 +0000
commitb20efaabc2e8e5d3d07fad285e4cb62fba859ebb (patch)
tree59fb582bebcd5451e4204a97ac4446eb3bd8cd64
parent71736a082ba2b51df403996cf10d63124f2d238e (diff)
downloadFreeBSD-src-b20efaabc2e8e5d3d07fad285e4cb62fba859ebb.zip
FreeBSD-src-b20efaabc2e8e5d3d07fad285e4cb62fba859ebb.tar.gz
Make the tp pointer available for debugging.
-rw-r--r--sys/dev/usb/ucom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c
index 3a283d8..9f595dd 100644
--- a/sys/dev/usb/ucom.c
+++ b/sys/dev/usb/ucom.c
@@ -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) {
OpenPOWER on IntegriCloud