diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-09-30 10:54:56 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-09-30 10:54:56 +0000 |
commit | c34c37afb9af89729861a193922e6ff0fe04caf2 (patch) | |
tree | 0387ce1209f68bf579db893cd61542b1def84571 /sys | |
parent | 3d13f2aed57e6a4dc1a6211dd5bb9c0109a7c8b8 (diff) |
Pretty.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uow.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/usb/uow.c b/sys/dev/usb/uow.c index c158d2ff94f..739c634d18b 100644 --- a/sys/dev/usb/uow.c +++ b/sys/dev/usb/uow.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uow.c,v 1.10 2006/09/30 10:42:30 grange Exp $ */ +/* $OpenBSD: uow.c,v 1.11 2006/09/30 10:54:55 grange Exp $ */ /* * Copyright (c) 2006 Alexander Yurchenko <grange@openbsd.org> @@ -358,17 +358,18 @@ uow_cmd(struct uow_softc *sc, int type, int cmd, int param) USETW(req.wIndex, param); USETW(req.wLength, 0); if ((error = usbd_do_request(sc->sc_udev, &req, NULL)) != 0) { - printf("%s: cmd failed, type %d, cmd %d, param %d: %s\n", - USBDEVNAME(sc->sc_dev), type, cmd, param, - usbd_errstr(error)); + printf("%s: cmd failed, type 0x%02x, cmd 0x%04x, " + "param 0x%04x: %s\n", USBDEVNAME(sc->sc_dev), type, cmd, + param, usbd_errstr(error)); return (1); } bzero(sc->sc_regs, sizeof(sc->sc_regs)); if (tsleep(sc->sc_regs, PRIBIO, "uowcmd", (UOW_TIMEOUT * hz) / 1000) != 0) { - printf("%s: cmd timeout, type %d, cmd %d, param %d\n", - USBDEVNAME(sc->sc_dev), type, cmd, param); + printf("%s: cmd timeout, type 0x%02x, cmd 0x%04x, " + "param 0x%04x\n", USBDEVNAME(sc->sc_dev), type, cmd, + param); return (1); } |