diff options
author | Sami Kerola | 2014-06-29 20:12:13 +0200 |
---|---|---|
committer | Karel Zak | 2014-06-30 10:43:04 +0200 |
commit | 7471244148f96b601b05787501d02459b37f8c06 (patch) | |
tree | ed51f4b3f8e21946f23ee78dd7d4c3cdbbb98dd1 /sys-utils/swapon.c | |
parent | umount: slightly improve the man page (diff) | |
download | kernel-qcow2-util-linux-7471244148f96b601b05787501d02459b37f8c06.tar.gz kernel-qcow2-util-linux-7471244148f96b601b05787501d02459b37f8c06.tar.xz kernel-qcow2-util-linux-7471244148f96b601b05787501d02459b37f8c06.zip |
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 <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/swapon.c')
-rw-r--r-- | sys-utils/swapon.c | 2 |
1 files changed, 1 insertions, 1 deletions
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), |