summaryrefslogtreecommitdiffstats
path: root/courgette/third_party
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-21 20:40:58 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-21 20:40:58 +0000
commit18cca2018b2159c6efdde226d1c2695aba4a62aa (patch)
treea0dd28779624db09bdfaf54d23c1ddd5b72c84c5 /courgette/third_party
parent3cd3202a53d2fbb2944a61c9286ff74b3ea6671b (diff)
downloadchromium_src-18cca2018b2159c6efdde226d1c2695aba4a62aa.zip
chromium_src-18cca2018b2159c6efdde226d1c2695aba4a62aa.tar.gz
chromium_src-18cca2018b2159c6efdde226d1c2695aba4a62aa.tar.bz2
Convert LOG(INFO) to VLOG(1) - courgette/.
This eliminates the custom logging code as VLOG is per-module configurable. I did preserve the distinct log level numbers in the VLOG statements. BUG=none TEST=none Review URL: http://codereview.chromium.org/3904002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63407 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/third_party')
-rw-r--r--courgette/third_party/bsdiff_create.cc32
1 files changed, 15 insertions, 17 deletions
diff --git a/courgette/third_party/bsdiff_create.cc b/courgette/third_party/bsdiff_create.cc
index 6f93720..a06e862 100644
--- a/courgette/third_party/bsdiff_create.cc
+++ b/courgette/third_party/bsdiff_create.cc
@@ -203,7 +203,7 @@ BSDiffStatus CreateBinaryPatch(SourceStream* old_stream,
SinkStream* patch_stream)
{
base::Time start_bsdiff_time = base::Time::Now();
- LOG(INFO) << "Start bsdiff";
+ VLOG(1) << "Start bsdiff";
size_t initial_patch_stream_length = patch_stream->Length();
SinkStreamSet patch_streams;
@@ -236,8 +236,8 @@ BSDiffStatus CreateBinaryPatch(SourceStream* old_stream,
base::Time q_start_time = base::Time::Now();
qsufsort(I, V, old, oldsize);
- LOG(INFO) << " done qsufsort "
- << (base::Time::Now() - q_start_time).InSecondsF();
+ VLOG(1) << " done qsufsort "
+ << (base::Time::Now() - q_start_time).InSecondsF();
V.clear();
const uint8* newbuf = new_stream->Buffer();
@@ -398,9 +398,9 @@ BSDiffStatus CreateBinaryPatch(SourceStream* old_stream,
control_stream_seeks->WriteVarint32Signed(seek_adjustment);
++control_length;
#ifdef DEBUG_bsmedberg
- LOG(INFO) << StringPrintf(
- "Writing a block: copy: %-8u extra: %-8u seek: %+-9d",
- copy_count, extra_count, seek_adjustment);
+ VLOG(1) << StringPrintf("Writing a block: copy: %-8u extra: %-8u seek: "
+ "%+-9d", copy_count, extra_count,
+ seek_adjustment);
#endif
lastscan = scan - lenb; // Include the backward extension in seed.
@@ -427,17 +427,15 @@ BSDiffStatus CreateBinaryPatch(SourceStream* old_stream,
size_t diff_skips_length = diff_skips->Length();
patch_streams.CopyTo(patch_stream);
- LOG(INFO) << "Control tuples: " << control_length
- << " copy bytes: " << diff_bytes_length
- << " mistakes: " << diff_bytes_nonzero
- << " (skips: " << diff_skips_length << ")"
- << " extra bytes: " << extra_bytes_length;
-
- LOG(INFO) << "Uncompressed bsdiff patch size "
- << patch_stream->Length() - initial_patch_stream_length;
-
- LOG(INFO) << "End bsdiff "
- << (base::Time::Now() - start_bsdiff_time).InSecondsF();
+ VLOG(1) << "Control tuples: " << control_length
+ << " copy bytes: " << diff_bytes_length
+ << " mistakes: " << diff_bytes_nonzero
+ << " (skips: " << diff_skips_length << ")"
+ << " extra bytes: " << extra_bytes_length;
+ << "\nUncompressed bsdiff patch size "
+ << patch_stream->Length() - initial_patch_stream_length;
+ << "\nEnd bsdiff "
+ << (base::Time::Now() - start_bsdiff_time).InSecondsF();
return OK;
}