summaryrefslogtreecommitdiffstats
path: root/Examine.c
diff options
context:
space:
mode:
Diffstat (limited to 'Examine.c')
-rw-r--r--Examine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Examine.c b/Examine.c
index 5de9202..d213664 100644
--- a/Examine.c
+++ b/Examine.c
@@ -123,7 +123,7 @@ int Examine(mddev_dev_t devlist, int brief, int export, int scan,
st->ss->getinfo_super(st, &ap->info);
st->ss->free_super(st);
}
- if (!(ap->info.disk.state & MD_DISK_SYNC))
+ if (!(ap->info.disk.state & (1<<MD_DISK_SYNC)))
ap->spares++;
d = dl_strdup(devlist->devname);
dl_add(ap->devs, d);