aboutsummaryrefslogtreecommitdiffstats
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-08-01 15:21:24 +1000
committerNeilBrown <neilb@suse.de>2013-08-01 15:21:24 +1000
commitcc83a81972c38289f4a9773b63d06aec08cde554 (patch)
tree106bca06bf0c4b17f2b756a72bce34eda42be9a7 /super-ddf.c
parentbc17158dcc9eac6eed4b84d1f41d1dcaa108cb9b (diff)
downloadmdadm-cc83a81972c38289f4a9773b63d06aec08cde554.tar.gz
DDF: use some #defines instead of bare constants.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/super-ddf.c b/super-ddf.c
index b1904e36..ac914575 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -1432,12 +1432,12 @@ static void examine_vds(struct ddf_super *sb)
printf(" unit[%d] : %d\n", i, be16_to_cpu(ve->unit));
printf(" state[%d] : %s, %s%s\n", i,
map_num(ddf_state, ve->state & 7),
- (ve->state & 8) ? "Morphing, ": "",
- (ve->state & 16)? "Not Consistent" : "Consistent");
+ (ve->state & DDF_state_morphing) ? "Morphing, ": "",
+ (ve->state & DDF_state_inconsistent)? "Not Consistent" : "Consistent");
printf(" init state[%d] : %s\n", i,
- map_num(ddf_init_state, ve->init_state&3));
+ map_num(ddf_init_state, ve->init_state&DDF_initstate_mask));
printf(" access[%d] : %s\n", i,
- map_num(ddf_access, (ve->init_state>>6) & 3));
+ map_num(ddf_access, (ve->init_state & DDF_access_mask) >> 6));
printf(" Name[%d] : %.16s\n", i, ve->name);
examine_vd(i, sb, ve->guid);
}