From 2e3aacf23dd9f2de6cfc867115a21d90f80ec67c Mon Sep 17 00:00:00 2001 From: augustss Date: Sat, 17 Nov 2001 01:52:56 +0000 Subject: [PATCH] Adapt to small ioctl(USB_DEVICEINFO) change. --- usr.sbin/usbdevs/usbdevs.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/usr.sbin/usbdevs/usbdevs.c b/usr.sbin/usbdevs/usbdevs.c index af474fc2bc65..74ef78af918d 100644 --- a/usr.sbin/usbdevs/usbdevs.c +++ b/usr.sbin/usbdevs/usbdevs.c @@ -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. @@ -84,8 +84,12 @@ usbdev(int f, int a, int rec) printf("addr %d: ", a); done[a] = 1; if (verbose) { - if (di.lowspeed) - printf("low speed, "); + switch (di.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) printf("power %d mA, ", di.power); else