diff options
author | David Sterba <dsterba@suse.com> | 2017-10-02 16:00:44 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-10-06 13:41:28 +0200 |
commit | e4c6772f69bff7bb75d8df0d5010a1091d6e47eb (patch) | |
tree | e03bdcb33fe97947439381866f8ad2234da151f3 /btrfs-list.c | |
parent | 7b533f161c635b0cbc3347f192e7585a44ccfb71 (diff) |
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 <dsterba@suse.com>
Diffstat (limited to 'btrfs-list.c')
-rw-r--r-- | btrfs-list.c | 6 |
1 files 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); |