From 4319d6997c99f14ef6f33279fe030a004de56f95 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 2 Mar 2017 16:41:00 +0100 Subject: make "(add, " messages end in logs rather than lost on console printf() was introduced in commit 9e6b327ca2b1f46db62e0811fabf0a6cf0b114a7 --- perl-install/partition_table/gpt.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm index df8ead3be..7beecb335 100644 --- a/perl-install/partition_table/gpt.pm +++ b/perl-install/partition_table/gpt.pm @@ -87,7 +87,7 @@ sub write { foreach (@{$hd->{will_tell_kernel}}) { my ($action, $part_number, $o_start, $o_size) = @$_; my ($part) = grep { $_->{start} == $o_start && $_->{size} == $o_size } @$pt; - print "($action, $part_number, $o_start, $o_size)\n"; + log::l("GPT partitioning: ($action, $part_number, $o_start, $o_size)"); if ($action eq 'add') { local $part->{fs_type} = $rev_parted_mapping{$part->{fs_type}} if $rev_parted_mapping{$part->{fs_type}}; c::disk_add_partition($hd->{file}, $o_start, $o_size, $part->{fs_type}) or die "failed to add partition #$part_number on $hd->{file}"; -- cgit v1.2.1