aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2021-01-04 00:15:53 +0800
committerColy Li <colyli@suse.de>2021-01-04 00:23:27 +0800
commit59338c230950a9d20ed210b9b169eb91fc8b37d8 (patch)
treec6a63bdc40a5972673ee91b9771edf6faf23b5ca
parent11f6bab95e5a8d4ec0089692ec78285a1fc96bab (diff)
downloadbcache-tools-59338c230950a9d20ed210b9b169eb91fc8b37d8.tar.gz
bcache-tools: improve column alignment for "bcache show -m" output
This patch improves the output column alignment for command "bcache show -m". The changes are adding missing '\t' in printf format strings. Signed-off-by: Coly Li <colyli@suse.de>
-rw-r--r--bcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bcache.c b/bcache.c
index a0c5a678..234702b1 100644
--- a/bcache.c
+++ b/bcache.c
@@ -195,7 +195,7 @@ int show_bdevs_detail(void)
fprintf(stderr, "Failed to list devices\n");
return ret;
}
- printf("Name\t\tUuid\t\t\t\t\tCset_Uuid\t\t\t\tType\t\tState");
+ printf("Name\t\tUuid\t\t\t\t\tCset_Uuid\t\t\t\tType\t\t\tState");
printf("\t\t\tBname\t\tAttachToDev\tAttachToCset\n");
list_for_each_entry_safe(devs, n, &head, dev_list) {
printf("%s\t%s\t%s\t%lu", devs->name, devs->uuid,
@@ -217,7 +217,7 @@ int show_bdevs_detail(void)
printf(" (unknown)");
break;
}
- printf("\t%-16s", devs->state);
+ printf("\t\t%-16s", devs->state);
printf("\t%-16s", devs->bname);
char attachdev[30];