From b3908491d6cd2f2a265ef674c575e03fd15eaad5 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 13 May 2013 14:57:41 +1000 Subject: [PATCH] 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 --- Detail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Detail.c b/Detail.c index 0d48b63..f28f5b2 100644 --- 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 &&