aboutsummaryrefslogtreecommitdiff
path: root/sbin/mdconfig
diff options
context:
space:
mode:
authorRebecca Cran <brucec@FreeBSD.org>2011-02-13 18:30:17 +0000
committerRebecca Cran <brucec@FreeBSD.org>2011-02-13 18:30:17 +0000
commit6992d350afae76f5b1e1243ab0672c4d21a0fdf8 (patch)
treed031e640f3ffdb67a0e7e14a0158e92f81ce0838 /sbin/mdconfig
parentd886030b8a9adc87d97d42a9b686b62fcf283a1a (diff)
downloadsrc-6992d350afae76f5b1e1243ab0672c4d21a0fdf8.tar.gz
src-6992d350afae76f5b1e1243ab0672c4d21a0fdf8.zip
Only print the unit number when invoked with the -n flag.
PR: bin/144300 Submitted by: arundel MFC after: 3 days
Notes
Notes: svn path=/head/; revision=218652
Diffstat (limited to 'sbin/mdconfig')
-rw-r--r--sbin/mdconfig/mdconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c
index 2217c6c4c0d4..8ce4334ba744 100644
--- a/sbin/mdconfig/mdconfig.c
+++ b/sbin/mdconfig/mdconfig.c
@@ -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)