From owner-freebsd-current Sat Feb 16 13:10:38 2002 Delivered-To: freebsd-current@freebsd.org Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by hub.freebsd.org (Postfix) with ESMTP id D846E37B402 for ; Sat, 16 Feb 2002 13:10:33 -0800 (PST) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.11.6/8.11.4) id g1GLAXO18222 for freebsd-current@freebsd.org; Sat, 16 Feb 2002 13:10:33 -0800 (PST) (envelope-from sgk) Date: Sat, 16 Feb 2002 13:10:33 -0800 From: Steve Kargl To: freebsd-current@freebsd.org Subject: usbdevs breaks world Message-ID: <20020216131033.A18203@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Recent, USB change break world. The following patch fixes the broken world, but not be best patch. -- Steve --- usbdevs.c.orig Sat Feb 16 12:19:10 2002 +++ usbdevs.c Sat Feb 16 12:26:41 2002 @@ -88,8 +88,17 @@ done[a] = 1; printf("addr %d: ", di.addr); if (verbose) { - if (di.lowspeed) + 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; + } if (di.power) printf("power %d mA, ", di.power); else To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message