From owner-freebsd-stable@FreeBSD.ORG Thu Oct 30 08:51:06 2008 Return-Path: Delivered-To: stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 655701065670 for ; Thu, 30 Oct 2008 08:51:06 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from hpsmtp-eml19.kpnxchange.com (hpsmtp-eml19.KPNXCHANGE.COM [213.75.38.84]) by mx1.freebsd.org (Postfix) with ESMTP id E9FDA8FC0A for ; Thu, 30 Oct 2008 08:51:05 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from cpsmtpi-eml05.kpnxchange.com ([213.75.38.135]) by hpsmtp-eml19.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 30 Oct 2008 09:39:02 +0100 Received: from uitsmijter.van-laarhoven.org ([81.207.207.222]) by cpsmtpi-eml05.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 30 Oct 2008 09:39:02 +0100 Received: (qmail 68917 invoked by uid 98); 30 Oct 2008 08:39:01 -0000 Received: from 10.66.0.135 (nick@10.66.0.135) by uitsmijter.van-laarhoven.org (envelope-from , uid 82) with qmail-scanner-2.01 (clamdscan: 0.92/5270. f-prot: 4.6.7/3.16.15. spamassassin: 3.2.3. Clear:RC:1(10.66.0.135):. Processed in 0.782965 secs); 30 Oct 2008 08:39:01 -0000 Received: from unknown (HELO van-laarhoven.org) (nick@10.66.0.135) by uitsmijter.van-laarhoven.org with SMTP; 30 Oct 2008 08:39:00 -0000 Received: (nullmailer pid 2064 invoked by uid 1001); Thu, 30 Oct 2008 08:38:59 -0000 From: Nick Hibma To: svn-src-all@freebsd.org Date: Thu, 30 Oct 2008 09:38:57 +0100 User-Agent: KMail/1.9.7 References: <200810300832.m9U8WInO045752@svn.freebsd.org> In-Reply-To: <200810300832.m9U8WInO045752@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810300938.58420.nick@van-laarhoven.org> X-OriginalArrivalTime: 30 Oct 2008 08:39:02.0446 (UTC) FILETIME=[F5F924E0:01C93A6A] Cc: FreeBSD STABLE Mailing List , chat@freebsd.org Subject: Re: svn commit: r184466 - head/sys/dev/usb X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 08:51:06 -0000 Folks, Just to preempt people suggesting that I committed into the wrong tree: I didn't. FBSD 6 is still locked down. To keep things simple I keep one version of the driver in CURRENT which works on FBSD CURRENT, 7, and 6. See http://people.freebsd.org/~n_hibma/u3g.html for more info on how to use the driver in various versions of the OS. And the cross post is intentional as well as I've had many positive responses from people that became aware of the driver. Nick > Author: n_hibma > Date: Thu Oct 30 08:32:18 2008 > New Revision: 184466 > URL: http://svn.freebsd.org/changeset/base/184466 > > Log: > We need to print out the device info ourselves on FBSD 6. > > Submitted by: Thomas Nystrom > > Modified: > head/sys/dev/usb/u3g.c > > Modified: head/sys/dev/usb/u3g.c > ========================================================================= >===== --- head/sys/dev/usb/u3g.c Thu Oct 30 08:17:27 2008 (r184465) > +++ head/sys/dev/usb/u3g.c Thu Oct 30 08:32:18 2008 (r184466) > @@ -227,6 +227,13 @@ u3g_attach(device_t self) > usb_config_descriptor_t *cd; > char devnamefmt[32]; > > +#if __FreeBSD_version < 700000 > + char *devinfo = malloc(1024, M_USBDEV, M_WAITOK); > + usbd_devinfo(dev, 0, devinfo); > + device_printf(self, "%s\n", devinfo); > + free(devinfo, M_USBDEV); > +#endif > + > /* get the config descriptor */ > cd = usbd_get_config_descriptor(dev); > if (cd == NULL) { > _______________________________________________ > svn-src-all@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-all > To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"