From eeb7a7a56de6cc86985a2e963cc6741eee2b1c94 Mon Sep 17 00:00:00 2001 From: freesource Date: Thu, 29 Nov 2001 06:28:53 +0000 Subject: [PATCH] Added the size output for replacements, this was being skipped because of a next loop. --- BootRoot/Yard.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BootRoot/Yard.pm b/BootRoot/Yard.pm index 4691628..95292ef 100644 --- a/BootRoot/Yard.pm +++ b/BootRoot/Yard.pm @@ -833,6 +833,8 @@ sub space_check { info(1, "Counting bytes of replacement $replacement", " (STRIPPED DEBUG)\n"); + my $rep_size = bytes_allocated($replacement); + info(1, "$replacement size $rep_size\n"); $total_bytes += bytes_allocated($tmp_strip); unlink($tmp_strip); next; @@ -845,6 +847,8 @@ sub space_check { info(1, "Counting bytes of replacement $replacement", " (STRIPPED ALL)\n"); + my $rep_size = bytes_allocated($replacement); + info(1, "$replacement size $rep_size\n"); $total_bytes += bytes_allocated($tmp_strip); unlink($tmp_strip); next; @@ -862,6 +866,8 @@ sub space_check { info(1, "Counting bytes of replacement $replacement", " (STRIPPED DEBUG)\n"); + my $rep_size = bytes_allocated($replacement); + info(1, "$replacement size $rep_size\n"); $total_bytes += bytes_allocated($tmp_strip); unlink($tmp_strip); next; @@ -876,12 +882,16 @@ sub space_check { sys("objcopy --strip-all $replacement $tmp_strip"); info(1, "Counting bytes of replacement $replacement", " (STRIPPED ALL)\n"); + my $rep_size = bytes_allocated($replacement); + info(1, "$replacement size $rep_size\n"); $total_bytes += bytes_allocated($tmp_strip); unlink($tmp_strip); next; } } info(1, "Counting bytes of replacement $replacement\n"); + my $rep_size = bytes_allocated($replacement); + info(1, "$replacement size $rep_size\n"); $total_bytes += bytes_allocated($replacement); } elsif (-l $file or $links_to{$file}) { ## no strip