summaryrefslogtreecommitdiffstats
path: root/sbin/mdconfig
diff options
context:
space:
mode:
authorbrucec <brucec@FreeBSD.org>2011-02-13 18:30:17 +0000
committerbrucec <brucec@FreeBSD.org>2011-02-13 18:30:17 +0000
commit24386b339af087345d307e303980325cd1c6d525 (patch)
treed031e640f3ffdb67a0e7e14a0158e92f81ce0838 /sbin/mdconfig
parent15edba98d5101edf2d9f9ace5760d0d96e8264ec (diff)
downloadFreeBSD-src-24386b339af087345d307e303980325cd1c6d525.zip
FreeBSD-src-24386b339af087345d307e303980325cd1c6d525.tar.gz
Only print the unit number when invoked with the -n flag.
PR: bin/144300 Submitted by: arundel MFC after: 3 days
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 2217c6c..8ce4334 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)
OpenPOWER on IntegriCloud