From 901f85fe546572a35bba5cb79479ce549377179f Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 30 Jul 2015 13:22:35 +0200 Subject: sfdisk: don't print extra linebreaks on --quiet Signed-off-by: Karel Zak --- disk-utils/fdisk-list.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'disk-utils/fdisk-list.c') 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: -- cgit v1.2.3-55-g7522