summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-07-21 16:28:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-07-21 16:28:51 +0000
commit97d5c4ef91e98d7a35992bbaf90869a96401ef93 (patch)
tree1f76c15c0485e8c9109e8ee0e6fca81ed433700c /sys
parentfe035fe21ec23644f1d09f8f2c7d03392237cfad (diff)
no need to say in two ways "a set of usb devices went away"; ok by a few
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/usb_subr.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index 6bdf55fb606..12918013a98 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.56 2007/06/12 16:26:37 mbalmer Exp $ */
+/* $OpenBSD: usb_subr.c,v 1.57 2007/07/21 16:28:50 deraadt 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 $ */
@@ -1338,7 +1338,6 @@ void
usb_disconnect_port(struct usbd_port *up, struct device *parent)
{
usbd_device_handle dev = up->device;
- char *hubname = parent->dv_xname;
int i;
DPRINTFN(3,("uhub_disconnect: up=%p dev=%p port=%d\n",
@@ -1354,11 +1353,11 @@ usb_disconnect_port(struct usbd_port *up, struct device *parent)
if (dev->subdevs != NULL) {
DPRINTFN(3,("usb_disconnect_port: disconnect subdevs\n"));
for (i = 0; dev->subdevs[i]; i++) {
- printf("%s: at %s", dev->subdevs[i]->dv_xname,
- hubname);
+ DPRINTF(("%s: at %s", dev->subdevs[i]->dv_xname,
+ parent->dv_xname));
if (up->portno != 0)
- printf(" port %d", up->portno);
- printf(" (addr %d) disconnected\n", dev->address);
+ DPRINTF((" port %d", up->portno));
+ DPRINTF((" (addr %d) disconnected\n", dev->address));
config_detach(dev->subdevs[i], DETACH_FORCE);
dev->subdevs[i] = 0;
}