From 0902a77a72ae84b4c0bea1112a7ae7df013018f2 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Fri, 7 Mar 2014 18:59:41 +0000 Subject: Print the wrong device descriptor's bMaxPacketSize before correcting it for USB2 devices. --- sys/dev/usb/usb_subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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; } -- cgit v1.2.3