summaryrefslogtreecommitdiffstats
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-04-07 17:40:24 +1000
committerNeilBrown <neilb@suse.de>2009-04-07 17:40:24 +1000
commit962371a529e12fb1221f85202cadb3d4879089f7 (patch)
treee031e0da84f3e4ad12926ad50e26ae5a6a7d4e05 /super-ddf.c
parente223334fe720c927301712f6b4944d58e415ac96 (diff)
downloadmdadm-962371a529e12fb1221f85202cadb3d4879089f7.tar.gz
mdadm-962371a529e12fb1221f85202cadb3d4879089f7.tar.xz
mdadm-962371a529e12fb1221f85202cadb3d4879089f7.zip
ddf: improve print out of physical devices.
Just add some more space really. 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 feb6621..8ab3597 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -1099,7 +1099,7 @@ static void examine_pds(struct ddf_super *sb)
int i;
struct dl *dl;
printf(" Physical Disks : %d\n", cnt);
- printf(" Number RefNo Size Device Type/State\n");
+ printf(" Number RefNo Size Device Type/State\n");
for (i=0 ; i<cnt ; i++) {
struct phys_disk_entry *pd = &sb->phys->entries[i];
@@ -1110,18 +1110,18 @@ static void examine_pds(struct ddf_super *sb)
//printf("\n");
printf(" %3d %08x ", i,
__be32_to_cpu(pd->refnum));
- printf("%lluK ", __be64_to_cpu(pd->config_size)>>1);
+ printf("%8lluK ", __be64_to_cpu(pd->config_size)>>1);
for (dl = sb->dlist; dl ; dl = dl->next) {
if (dl->disk.refnum == pd->refnum) {
char *dv = map_dev(dl->major, dl->minor, 0);
if (dv) {
- printf("%-10s", dv);
+ printf("%-15s", dv);
break;
}
}
}
if (!dl)
- printf("%10s","");
+ printf("%15s","");
printf(" %s%s%s%s%s",
(type&2) ? "active":"",
(type&4) ? "Global-Spare":"",