diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2015-07-06 10:52:11 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-07-29 09:26:12 +0200 |
commit | 2cf42394f020af6643451afb6ca41c3f831c14ef (patch) | |
tree | 00ccaa41663bf126ced8773a054208f0c4e400cd /bitmap.c | |
parent | mdadm: fix wrong condition for go to abort (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |