diff options
author | NeilBrown <neilb@suse.de> | 2013-05-13 14:57:41 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-05-13 14:57:41 +1000 |
commit | b3908491d6cd2f2a265ef674c575e03fd15eaad5 (patch) | |
tree | 05849a7cdb1d5d107ee368a10474cd86cea7cb85 /Detail.c | |
parent | 8adabef5875480b88c448d263f83afd5a8f08343 (diff) |
Detail: fix --brief --verbose
This pair of options should give a --brief listing including devices=
information. But recent changes to flag passing broke this.
So fix it.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -284,7 +284,7 @@ int Detail(char *dev, struct context *c) if (c->brief) { mdu_bitmap_file_t bmf; printf("ARRAY %s", dev); - if (c->brief > 1) { + if (c->verbose > 0) { if (array.raid_disks) printf(" level=%s num-devices=%d", str?str:"-unknown-", @@ -624,7 +624,7 @@ This is pretty boring if (st) st->ss->free_super(st); - if (c->brief > 1 && devices) printf("\n devices=%s", devices); + if (c->brief && c->verbose > 0 && devices) printf("\n devices=%s", devices); if (c->brief) printf("\n"); if (c->test && |