diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-09-10 11:53:06 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-09-10 11:53:06 +0000 |
commit | d17f06b1ba131a0e7b2b2af63830ceecb04477f9 (patch) | |
tree | 6c88786ffeace3fb11edc29e14f58f539b667fac /sys/dev | |
parent | 6dec3bebf733e6cac3d321349653b98dacb755d4 (diff) |
Show usb stack error code if a firmware page fails to load in urtwn(4).
ok mpi@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_urtwn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c index fa110eb0559..d0913cbe34e 100644 --- a/sys/dev/usb/if_urtwn.c +++ b/sys/dev/usb/if_urtwn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_urtwn.c,v 1.50 2015/08/24 04:07:38 jsg Exp $ */ +/* $OpenBSD: if_urtwn.c,v 1.51 2015/09/10 11:53:05 stsp Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -2575,8 +2575,8 @@ urtwn_load_firmware(struct urtwn_softc *sc) mlen = MIN(len, R92C_FW_PAGE_SIZE); error = urtwn_fw_loadpage(sc, page, ptr, mlen); if (error != 0) { - printf("%s: could not load firmware page %d\n", - sc->sc_dev.dv_xname, page); + printf("%s: could not load firmware page %d " + "(error %d)\n", sc->sc_dev.dv_xname, page, error); goto fail; } ptr += mlen; |