From e4c6772f69bff7bb75d8df0d5010a1091d6e47eb Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 2 Oct 2017 16:00:44 +0200 Subject: [PATCH] btrfs-progs: set fixed with for printing uuids of subvolumes The tabular output format looks better if the empty uuids are aligned with the other. In the list output (now default) it's not that nice but the whole list format is not nice anyway. Signed-off-by: David Sterba --- btrfs-list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c index 92a537f4..b050bb60 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -1340,21 +1340,21 @@ static void print_subvolume_column(struct root_info *subv, strcpy(uuidparse, "-"); else uuid_unparse(subv->uuid, uuidparse); - printf("%s", uuidparse); + printf("%-36s", uuidparse); break; case BTRFS_LIST_PUUID: if (uuid_is_null(subv->puuid)) strcpy(uuidparse, "-"); else uuid_unparse(subv->puuid, uuidparse); - printf("%s", uuidparse); + printf("%-36s", uuidparse); break; case BTRFS_LIST_RUUID: if (uuid_is_null(subv->ruuid)) strcpy(uuidparse, "-"); else uuid_unparse(subv->ruuid, uuidparse); - printf("%s", uuidparse); + printf("%-36s", uuidparse); break; case BTRFS_LIST_PATH: BUG_ON(!subv->full_path);