From 7471244148f96b601b05787501d02459b37f8c06 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 29 Jun 2014 19:12:13 +0100 Subject: swapon: align --summary fields This commit makes partitions and files to have remaining three columns aligned. Below print out demonstrates earlier misalignment. $ swapon -s Filename Type Size Used Priority /dev/sda2 partition 4194300 0 3 /home/src/util-linux/newswap file 496 0 -1 Signed-off-by: Sami Kerola --- sys-utils/swapon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/swapon.c') diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 8c36b2c85..53cd6f951 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -209,7 +209,7 @@ static int display_summary(void) printf(_("%s\t\t\t\tType\t\tSize\tUsed\tPriority\n"), _("Filename")); while (mnt_table_next_fs(st, itr, &fs) == 0) { - printf("%-39s\t%s\t%jd\t%jd\t%d\n", + printf("%-39s\t%-8s\t%jd\t%jd\t%d\n", mnt_fs_get_source(fs), mnt_fs_get_swaptype(fs), mnt_fs_get_size(fs), -- cgit v1.2.3-55-g7522