From owner-freebsd-bugs@FreeBSD.ORG Fri Jun 24 13:20:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44716106567A for ; Fri, 24 Jun 2011 13:20:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 352688FC08 for ; Fri, 24 Jun 2011 13:20:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5ODKA0L013088 for ; Fri, 24 Jun 2011 13:20:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5ODKAYr013087; Fri, 24 Jun 2011 13:20:10 GMT (envelope-from gnats) Date: Fri, 24 Jun 2011 13:20:10 GMT Message-Id: <201106241320.p5ODKAYr013087@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Hans Petter Selasky Cc: Subject: Re: misc/157903: automated kldload for USB class devices X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Hans Petter Selasky List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2011 13:20:11 -0000 The following reply was made to PR conf/157903; it has been noted by GNATS. From: Hans Petter Selasky To: Robert Millan Cc: freebsd-hackers@freebsd.org, FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org, freebsd-usb@freebsd.org, freebsd-current@freebsd.org Subject: Re: misc/157903: automated kldload for USB class devices Date: Fri, 24 Jun 2011 15:11:44 +0200 On Friday 24 June 2011 14:59:37 Robert Millan wrote: > 2011/6/24 Hans Petter Selasky : > >> Very nice. But why not use variable names instead of hardcoding > >> numbers? It makes the output much easier to understand. > > > > To save memory. > > I haven't inspected devd code, but I was under the assumption that > variables only lived untill resolved. What would be the point of keeping > them in memory after devd has finished parsing the config files? Hi, I haven't checked that, though if you want the readable version, then you need to check the source code. However I could add some code to print a vendor ID comment, based on usbdevs. --HPS