]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Detail: fix --brief --verbose
authorNeilBrown <neilb@suse.de>
Mon, 13 May 2013 04:57:41 +0000 (14:57 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 13 May 2013 04:57:41 +0000 (14:57 +1000)
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>
Detail.c

index 0d48b63f14e8dacb3915cca3eed87ce8712b6a02..f28f5b2b46da75a230d4f933d621299aad00a96a 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -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 &&