diff options
| author | Warner Losh <imp@FreeBSD.org> | 2007-06-11 06:03:32 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2007-06-11 06:03:32 +0000 |
| commit | 478124e645f25f1756591e9f47abe09ab9521924 (patch) | |
| tree | 50ad2cd79ba077e1cdf460885e51d838a6782d9e | |
| parent | 339075ea3d1c7f60153fd2b1ad5dbffe35d08b52 (diff) | |
Notes
| -rw-r--r-- | sys/dev/usb/ufm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/ufm.c b/sys/dev/usb/ufm.c index 087630048d0d..6e603562d24d 100644 --- a/sys/dev/usb/ufm.c +++ b/sys/dev/usb/ufm.c @@ -163,7 +163,7 @@ USB_ATTACH(ufm) USB_ATTACH_SUCCESS_RETURN; nobulk: - printf("%s: could not find %s\n", device_get_nameunit(sc->sc_dev),ermsg); + device_printf(sc->sc_dev, "could not find %s\n", ermsg); USB_ATTACH_ERROR_RETURN; } @@ -220,10 +220,8 @@ ufm_do_req(struct ufm_softc *sc, u_int8_t reqtype, u_int8_t request, err = usbd_do_request_flags(sc->sc_udev, &req, retbuf, 0, NULL, USBD_DEFAULT_TIMEOUT); splx(s); - if (err) { - printf("usbd_do_request_flags returned %#x\n", err); + if (err) return (EIO); - } return (0); } |
