]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
ddf: improve print out of physical devices.
authorNeilBrown <neilb@suse.de>
Tue, 7 Apr 2009 07:40:24 +0000 (17:40 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 7 Apr 2009 07:40:24 +0000 (17:40 +1000)
Just add some more space really.

Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c

index feb66212678324d83a085f4b064cd8cda8418c15..8ab359729abbe4d90cc79daff37a07f889992101 100644 (file)
@@ -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":"",