From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fqkha-0001z6-KB for qemu-devel@nongnu.org; Thu, 15 Jun 2006 01:47:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FqkhY-0001x6-Td for qemu-devel@nongnu.org; Thu, 15 Jun 2006 01:47:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqkhY-0001wr-If for qemu-devel@nongnu.org; Thu, 15 Jun 2006 01:47:32 -0400 Received: from [24.93.47.42] (helo=ms-smtp-03.texas.rr.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fqkqt-000194-07 for qemu-devel@nongnu.org; Thu, 15 Jun 2006 01:57:11 -0400 Received: from [192.168.0.11] (cpe-67-9-160-120.austin.res.rr.com [67.9.160.120]) by ms-smtp-03.texas.rr.com (8.13.6/8.13.6) with ESMTP id k5F5lUtn010880 for ; Thu, 15 Jun 2006 00:47:30 -0500 (CDT) Subject: Re: [Qemu-devel] [usb] redo usb_host_find_device() routine - strtoul returning 0 for bus_num From: Lonnie Mendez In-Reply-To: <449031FC.3060100@bellard.org> References: <44752389.4050006@austin.rr.com> <449031FC.3060100@bellard.org> Content-Type: text/plain Date: Thu, 15 Jun 2006 00:47:24 -0500 Message-Id: <1150350444.5338.6.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, 2006-06-14 at 17:57 +0200, Fabrice Bellard wrote: > Lonnie Mendez wrote: > > lo list. Trying usb_add host:3.2 was failing with: > > > > /proc/bus/usb/000/002: No such file or directory > > > > in the terminal that qemu was spawned from. It looks like strtoul was > > returning 0 for bus_num with the devname "host:3.2". I rewrote the > > function to use sscanf in both cases. > > Can you confirm ? From the code, usb_host_find_device() is never called > with "host:" as initial string (it is filtered before in vl.c). For whatever reason I am unable to reproduce this now. It may have been a contaminated binary. For what it's worth this is with a different distro.