From owner-svn-src-head@FreeBSD.ORG Sun Feb 13 20:13:16 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 0B47D106566C; Sun, 13 Feb 2011 20:13:16 +0000 (UTC) Date: Sun, 13 Feb 2011 20:13:16 +0000 From: Alexander Best To: Bruce Cran Message-ID: <20110213201315.GA15607@freebsd.org> References: <201102131830.p1DIUHHG047352@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201102131830.p1DIUHHG047352@svn.freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r218652 - head/sbin/mdconfig X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2011 20:13:16 -0000 On Sun Feb 13 11, Bruce Cran wrote: > Author: brucec > Date: Sun Feb 13 18:30:17 2011 > New Revision: 218652 > URL: http://svn.freebsd.org/changeset/base/218652 > > Log: > Only print the unit number when invoked with the -n flag. wow. i completely forget about this one. ;) thanks for taking care of it. :) > > PR: bin/144300 > Submitted by: arundel > MFC after: 3 days > > Modified: > head/sbin/mdconfig/mdconfig.c > > Modified: head/sbin/mdconfig/mdconfig.c > ============================================================================== > --- head/sbin/mdconfig/mdconfig.c Sun Feb 13 18:21:41 2011 (r218651) > +++ head/sbin/mdconfig/mdconfig.c Sun Feb 13 18:30:17 2011 (r218652) > @@ -373,7 +373,7 @@ md_list(char *units, int opt) > found = 1; > } > gc = &pp->lg_config; > - printf("%s", pp->lg_name); > + printf("%s", nflag ? pp->lg_name + 2 : pp->lg_name); > if (opt & OPT_VERBOSE || opt & OPT_UNIT) { > type = geom_config_get(gc, "type"); > if (strcmp(type, "vnode") == 0) -- a13x