forked from pool/bcache-tools
Jan Engelhardt
78695432ff
- bcache.h: fix typo from SUUP to SUPP (jsc#SLE-9807) 0019-bcache.h-fix-typo-from-SUUP-to-SUPP.patch - bcache-tools: only call set_bucket_size() for cache device (jsc#SLE-9807) 0020-bcache-tools-only-call-set_bucket_size-for-cache-dev.patch - bcache.h: add BCH_FEATURE_INCOMPAT_LARGE_BUCKET to BCH_FEATURE_INCOMPAT_SUPP (jsc#SLE-9807) 0021-bcache.h-add-BCH_FEATURE_INCOMPAT_LARGE_BUCKET-to-BC.patch - bcache-tools: check incompatible feature set (jsc#SLE-9807) 0022-bcache-tools-check-incompatible-feature-set.patch - bcache-tools: introduce BCH_FEATURE_INCOMPAT_LOG_LARGE_BUCKET_SIZE for large bucket (jsc#SLE-9807) 0023-bcache-tools-introduce-BCH_FEATURE_INCOMPAT_LOG_LARG.patch - bcache-tools: display obsoleted bucket size configuration (jsc#SLE-9807) 0024-bcache-tools-display-obsoleted-bucket-size-configura.patch - bcache-tools: recover the missing sb.csum for showing bcache device super block (jsc#SLE-9807) 0025-bcache-tools-recover-the-missing-sb.csum-for-showing.patch - bcache-tools: only call to_cache_sb() for bcache device in may_add_item() (jsc#SLE-9807) 0026-bcache-tools-only-call-to_cache_sb-for-bcache-device.patch - bcache-tools: improve column alignment for "bcache show -m" output (jsc#SLE-9807) 0027-bcache-tools-improve-column-alignment-for-bcache-sho.patch OBS-URL: https://build.opensuse.org/request/show/860492 OBS-URL: https://build.opensuse.org/package/show/filesystems/bcache-tools?expand=0&rev=31
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From 59338c230950a9d20ed210b9b169eb91fc8b37d8 Mon Sep 17 00:00:00 2001
|
|
From: Coly Li <colyli@suse.de>
|
|
Date: Mon, 4 Jan 2021 00:15:53 +0800
|
|
Subject: [PATCH 9/9] bcache-tools: improve column alignment for "bcache show
|
|
-m" output
|
|
Git-commit: 59338c230950a9d20ed210b9b169eb91fc8b37d8
|
|
References: jsc#SLE-9807
|
|
|
|
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>
|
|
|
|
---
|
|
bcache.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/bcache.c b/bcache.c
|
|
index a0c5a67..234702b 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];
|
|
|
|
--
|
|
2.26.2
|
|
|