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>
This commit is contained in:
NeilBrown 2013-05-13 14:57:41 +10:00
parent 8adabef587
commit b3908491d6
1 changed files with 2 additions and 2 deletions

View File

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