Adapt to small ioctl(USB_DEVICEINFO) change.
This commit is contained in:
parent
1f6462461a
commit
2e3aacf23d
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: usbdevs.c,v 1.17 2001/02/19 23:22:48 cgd Exp $ */
|
/* $NetBSD: usbdevs.c,v 1.18 2001/11/17 01:52:56 augustss Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
@ -84,8 +84,12 @@ usbdev(int f, int a, int rec)
|
|||||||
printf("addr %d: ", a);
|
printf("addr %d: ", a);
|
||||||
done[a] = 1;
|
done[a] = 1;
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
if (di.lowspeed)
|
switch (di.speed) {
|
||||||
printf("low speed, ");
|
case USB_SPEED_LOW: printf("low speed, "); break;
|
||||||
|
case USB_SPEED_FULL: printf("full speed, "); break;
|
||||||
|
case USB_SPEED_HIGH: printf("high speed, "); break;
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
if (di.power)
|
if (di.power)
|
||||||
printf("power %d mA, ", di.power);
|
printf("power %d mA, ", di.power);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user