summaryrefslogtreecommitdiff
path: root/Detail.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-10-13 16:15:18 +1100
committerNeilBrown <neilb@suse.de>2008-10-13 16:15:18 +1100
commite4965ef8461b3d0db6e94939f07d814d819f86c2 (patch)
tree61e614fb47f97eb10e6628fa531a0065b4ddf0c4 /Detail.c
parent2a528478c75b6659188fc2ce0d9543124992fe6c (diff)
Improve reporting of layout for raid10.
Showing e.g. near=1, far=2 for the 'far2' layout of raid10 is confusing even though there is a sense in which is it correct. Make it less confusing by only printing whichever number is not 1. If both are 1, make that clear too (i.e. no redundancy).
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Detail.c b/Detail.c
index 2b2111cd..25b91b1e 100644
--- a/Detail.c
+++ b/Detail.c
@@ -239,9 +239,9 @@ int Detail(char *dev, int brief, int export, int test, char *homehost)
printf(" Layout : %s\n", c?c:"-unknown-");
}
if (array.level == 10) {
- printf(" Layout : near=%d, %s=%d\n",
- array.layout&255, (array.layout&0x10000)?"offset":"far",
- (array.layout>>8)&255);
+ printf(" Layout :");
+ print_r10_layout(array.layout);
+ printf("\n");
}
switch (array.level) {
case 0: