diff options
author | Karel Zak | 2015-07-30 13:22:35 +0200 |
---|---|---|
committer | Karel Zak | 2015-07-30 13:22:35 +0200 |
commit | 901f85fe546572a35bba5cb79479ce549377179f (patch) | |
tree | e958fc8ec8e8b083a939db0e2fd7dc3cd38e6cee /disk-utils | |
parent | libfdisk: allow to change partition type for extended partitions (diff) | |
download | kernel-qcow2-util-linux-901f85fe546572a35bba5cb79479ce549377179f.tar.gz kernel-qcow2-util-linux-901f85fe546572a35bba5cb79479ce549377179f.tar.xz kernel-qcow2-util-linux-901f85fe546572a35bba5cb79479ce549377179f.zip |
sfdisk: don't print extra linebreaks on --quiet
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/fdisk-list.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/disk-utils/fdisk-list.c b/disk-utils/fdisk-list.c index 7d3c219db..2e491ca41 100644 --- a/disk-utils/fdisk-list.c +++ b/disk-utils/fdisk-list.c @@ -166,7 +166,7 @@ void list_disklabel(struct fdisk_context *cxt) /* print */ if (!scols_table_is_empty(out)) { - fputc('\n', stdout); + fdisk_info(cxt, ""); /* just line break */ scols_print_table(out); } @@ -177,7 +177,7 @@ void list_disklabel(struct fdisk_context *cxt) continue; if (!fdisk_lba_is_phy_aligned(cxt, fdisk_partition_get_start(pa))) { if (!post) - fputc('\n', stdout); + fdisk_info(cxt, ""); /* line break */ fdisk_warnx(cxt, _("Partition %zu does not start on physical sector boundary."), fdisk_partition_get_partno(pa) + 1); post++; @@ -186,7 +186,7 @@ void list_disklabel(struct fdisk_context *cxt) if (fdisk_table_wrong_order(tb)) { if (!post) - fputc('\n', stdout); + fdisk_info(cxt, ""); /* line break */ fdisk_info(cxt, _("Partition table entries are not in disk order.")); } done: @@ -280,7 +280,7 @@ void list_freespace(struct fdisk_context *cxt) /* print */ if (!scols_table_is_empty(out)) { - fputc('\n', stdout); + fdisk_info(cxt, ""); /* line break */ scols_print_table(out); } done: |