diff options
author | 2005-01-12 11:15:10 +0000 | |
---|---|---|
committer | 2005-01-12 11:15:10 +0000 | |
commit | dea9585f5ca5005e380d70d0b5f74c8551a3a996 (patch) | |
tree | 59cb1008da18d2952220a17248d37f7c505593af | |
parent | Don't call ahc_setup_data() after calling ahc_execute_scb() since the (diff) | |
download | wireguard-openbsd-dea9585f5ca5005e380d70d0b5f74c8551a3a996.tar.xz wireguard-openbsd-dea9585f5ca5005e380d70d0b5f74c8551a3a996.zip |
fix kernel building with option UBSA_DEBUG.
ok dlg@ henning@
-rw-r--r-- | sys/dev/usb/ubsa.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/usb/ubsa.c b/sys/dev/usb/ubsa.c index 7988dbc1b48..5432c14a658 100644 --- a/sys/dev/usb/ubsa.c +++ b/sys/dev/usb/ubsa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsa.c,v 1.7 2005/01/03 23:15:50 reyk Exp $ */ +/* $OpenBSD: ubsa.c,v 1.8 2005/01/12 11:15:10 moritz Exp $ */ /* $NetBSD: ubsa.c,v 1.5 2002/11/25 00:51:33 fvdl Exp $ */ /*- * Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>. @@ -374,7 +374,7 @@ USB_ATTACH(ubsa) USBDEV(sc->sc_dev)); DPRINTF(("ubsa: in = 0x%x, out = 0x%x, intr = 0x%x\n", - uca.bulkin_no, uca.bulkout_no, sc->sc_intr_number)); + uca.bulkin, uca.bulkout, sc->sc_intr_number)); sc->sc_subdev = config_found_sm(self, &uca, ucomprint, ucomsubmatch); @@ -700,8 +700,7 @@ ubsa_intr(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) return; DPRINTF(("%s: ubsa_intr: abnormal status: %s\n", - USBDEVNAME(sc->sc_ucom.sc_dev), - usbd_errstr(status))); + USBDEVNAME(sc->sc_dev), usbd_errstr(status))); usbd_clear_endpoint_stall_async(sc->sc_intr_pipe); return; } @@ -711,7 +710,7 @@ ubsa_intr(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) sc->sc_msr = buf[3]; DPRINTF(("%s: ubsa lsr = 0x%02x, msr = 0x%02x\n", - USBDEVNAME(sc->sc_ucom.sc_dev), sc->sc_lsr, sc->sc_msr)); + USBDEVNAME(sc->sc_dev), sc->sc_lsr, sc->sc_msr)); ucom_status_change((struct ucom_softc *)sc->sc_subdev); } |