summaryrefslogtreecommitdiffstats
path: root/bitmap.c
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2015-07-06 10:52:11 +0200
committerNeilBrown <neilb@suse.com>2015-07-29 09:26:12 +0200
commit2cf42394f020af6643451afb6ca41c3f831c14ef (patch)
tree00ccaa41663bf126ced8773a054208f0c4e400cd /bitmap.c
parentmdadm: fix wrong condition for go to abort (diff)
downloadmdadm-2cf42394f020af6643451afb6ca41c3f831c14ef.tar.xz
mdadm-2cf42394f020af6643451afb6ca41c3f831c14ef.zip
md-cluster: use %-64s to print cluster_name
Left align is better for cluster with name less than 64. Also make the output of cluster name is aligned with others. Signed-off-by: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'bitmap.c')
-rw-r--r--bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitmap.c b/bitmap.c
index 60865bcc..7beb80bb 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -342,7 +342,7 @@ int ExamineBitmap(char *filename, int brief, struct supertype *st)
100.0 * info->dirty_bits / (info->total_bits?:1));
} else {
printf(" Cluster nodes : %d\n", sb->nodes);
- printf(" Cluster name : %64s\n", sb->cluster_name);
+ printf(" Cluster name : %-64s\n", sb->cluster_name);
for (i = 0; i < (int)sb->nodes; i++) {
if (i) {
free(info);