From: David Sterba Date: Mon, 2 Oct 2017 14:00:44 +0000 (+0200) Subject: btrfs-progs: set fixed with for printing uuids of subvolumes X-Git-Tag: upstream/4.16.1~371 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4c6772f69bff7bb75d8df0d5010a1091d6e47eb;p=platform%2Fupstream%2Fbtrfs-progs.git 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 --- diff --git a/btrfs-list.c b/btrfs-list.c index 92a537f..b050bb6 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);