summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lzo/prepcore.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lzo/prepcore.c b/lzo/prepcore.c
index 1d400670..2d452841 100644
--- a/lzo/prepcore.c
+++ b/lzo/prepcore.c
@@ -353,6 +353,12 @@ int main(int argc, char *argv[])
fwrite(out, 1, outfile_len, f) != outfile_len || fclose(f))
error("write error");
+ printf("%s: in %lu, fixed %lu, out %lu, total %lu (%lu%%)\n",
+ out_name, in_len, offset-start, outfile_len,
+ (offset-start)+outfile_len,
+ (((offset-start)+outfile_len)*100+infile_len-start-1)
+ /(infile_len-start));
+
/*
* Step 12: verify decompression
*/