Only print the unit number when invoked with the -n flag.

PR:	bin/144300
Submitted by:	arundel
MFC after:	3 days
This commit is contained in:
Rebecca Cran 2011-02-13 18:30:17 +00:00
parent d886030b8a
commit 6992d350af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218652

View File

@ -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)