summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2015-09-10 11:53:05 +0000
committerstsp <stsp@openbsd.org>2015-09-10 11:53:05 +0000
commitd462688bd151e6a54c976260c51a4e046492a075 (patch)
tree81003e6be7d7c7ad1de534c7e029ea94874ec11c
parentsync (diff)
downloadwireguard-openbsd-d462688bd151e6a54c976260c51a4e046492a075.tar.xz
wireguard-openbsd-d462688bd151e6a54c976260c51a4e046492a075.zip
Show usb stack error code if a firmware page fails to load in urtwn(4).
ok mpi@
-rw-r--r--sys/dev/usb/if_urtwn.c6
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;