diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-08-02 16:37:00 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-08-02 16:37:00 -0700 |
commit | 304ab3ccaeb7cc450e11579fcc027da7265b3394 (patch) | |
tree | fb216f4d967ecac1edf715a1fac42255c456bd03 | |
parent | 4e450f3d57faa164b4d81a7cf21e7d8572a763fb (diff) | |
download | syslinux-304ab3ccaeb7cc450e11579fcc027da7265b3394.tar.gz |
prepcore: print compression statistics
Print some basic compression statistics, so we know what we are
dealing with.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | lzo/prepcore.c | 6 |
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 */ |