From owner-freebsd-current@FreeBSD.ORG Mon Aug 6 09:40:05 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7FC416A417 for ; Mon, 6 Aug 2007 09:40:05 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 3D5DB13C48A for ; Mon, 6 Aug 2007 09:40:05 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l769QvSe018184; Mon, 6 Aug 2007 11:26:57 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l769QpeB012873 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Aug 2007 11:26:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l769QpTq047417; Mon, 6 Aug 2007 11:26:51 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l769QoIP047416; Mon, 6 Aug 2007 11:26:50 +0200 (CEST) (envelope-from ticso) Date: Mon, 6 Aug 2007 11:26:50 +0200 From: Bernd Walter To: Giorgos Keramidas Message-ID: <20070806092649.GK41893@cicely12.cicely.de> References: <20070806003120.GA13806@kobe.laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070806003120.GA13806@kobe.laptop> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: freebsd-current@freebsd.org Subject: Re: odd usbdevs output X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2007 09:40:05 -0000 On Mon, Aug 06, 2007 at 03:31:20AM +0300, Giorgos Keramidas wrote: > Hi all, > > I recently acquired a USB stick which seems to work with umass but shows > odd output in "usbdevs": > > % keramida@kobe:/home/keramida$ sudo usbdevs -dv > % Password: > % [...] > % Controller /dev/usb4: > % addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00 > % uhub4 > % port 1 addr 2: high speed, power 80 mA, config 1, USB Mass Storage Device(0x0163), ????????y(0x1307), rev 1.00 > % umass0 > % [...] > > Does the odd `????????y' vendor name mean that the kernel prints random > `garbage' here? If that is so, how can I use kdb and watch this while > it happens? It does mean, that the device has an unprintable name. The strings in USB are unicode and the device is free to use non ascii character, but the kernel has to reduce it to printable ascii ones and replaces ever other character with an '?'. But more often than using non ascii characters broken devices uses plain ascii with garbage in the high byte. Anyway - it's the device sending non ascii codes. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de