From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 21 18:23:14 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 35C23106566B; Thu, 21 Oct 2010 18:23:14 +0000 (UTC) Date: Thu, 21 Oct 2010 18:23:14 +0000 From: Alexander Best To: Garrett Cooper Message-ID: <20101021182314.GA16569@freebsd.org> References: <20101021174658.GA11107@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-hackers@freebsd.org Subject: Re: a few minor kldstat fixes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2010 18:23:14 -0000 On Thu Oct 21 10, Garrett Cooper wrote: > On Thu, Oct 21, 2010 at 10:46 AM, Alexander Best wrote: > > this patch fixes the following issues: > > > > - unbreak 'kldstat -i 999 -v' output > > - remove an unnecessary set of "{" and "}" > > - change printfile() to blend into the overall style used in kldstat.c > > - add a kldstat(8) entry to document the relationship between the "-i" and "-n" flags > > Might be better to say that the -i and -n options are mutually > exclusive in the manpage, and have the args parser parse out those two > cases and bail if both of them are set. i don't think the current behavior should be changed. some people might have something like 'kldstat -i X -n Y' in their scripts expect "-n Y" to override "-i X", instead of having kldstat fail. > Thanks! > -Garrett -- a13x