Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/usbdevs Adapt to small ioctl(USB_DEVICEINFO) change.
details: https://anonhg.NetBSD.org/src/rev/3cddb9941af2
branches: trunk
changeset: 517686:3cddb9941af2
user: augustss <augustss%NetBSD.org@localhost>
date: Sat Nov 17 01:52:56 2001 +0000
description:
Adapt to small ioctl(USB_DEVICEINFO) change.
diffstat:
usr.sbin/usbdevs/usbdevs.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 0d26aef7dee6 -r 3cddb9941af2 usr.sbin/usbdevs/usbdevs.c
--- a/usr.sbin/usbdevs/usbdevs.c Sat Nov 17 01:49:53 2001 +0000
+++ b/usr.sbin/usbdevs/usbdevs.c Sat Nov 17 01:52:56 2001 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index