diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-03-07 18:59:41 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-03-07 18:59:41 +0000 |
commit | 0902a77a72ae84b4c0bea1112a7ae7df013018f2 (patch) | |
tree | 5fee51abc2c6748349d0446a7a62b4c5712ec303 /sys | |
parent | ec3938679d2502c31b968b69cf7d13e132f05f88 (diff) |
Print the wrong device descriptor's bMaxPacketSize before correcting it
for USB2 devices.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/usb_subr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c index c47f18a8b9e..dfa0bc3ea32 100644 --- a/sys/dev/usb/usb_subr.c +++ b/sys/dev/usb/usb_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usb_subr.c,v 1.98 2014/02/09 13:21:48 mpi Exp $ */ +/* $OpenBSD: usb_subr.c,v 1.99 2014/03/07 18:59:40 mpi Exp $ */ /* $NetBSD: usb_subr.c,v 1.103 2003/01/10 11:19:13 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */ @@ -1132,8 +1132,8 @@ usbd_new_device(struct device *parent, struct usbd_bus *bus, int depth, /* Max packet size must be 64 (sec 5.5.3). */ if (dd->bMaxPacketSize != USB_2_MAX_CTRL_PACKET) { #ifdef DIAGNOSTIC - printf("usbd_new_device: addr=%d bad max packet size\n", - addr); + printf("%s: addr=%d bad max packet size %d\n", __func__, + addr, dd->bMaxPacketSize); #endif dd->bMaxPacketSize = USB_2_MAX_CTRL_PACKET; } |