Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(554)

Unified Diff: net/tools/dns_fuzz_stub/dns_fuzz_stub.cc

Issue 82913011: LOG(INFO) tidying in net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/balsa/balsa_frame.cc ('k') | net/tools/dump_cache/simple_cache_dumper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/dns_fuzz_stub/dns_fuzz_stub.cc
diff --git a/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc b/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc
index f9caa79df620bc736806e94dbb606bcc1cb64466..c70f0eabffc19b53c7393bb75ffbc3cd79061a27 100644
--- a/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc
+++ b/net/tools/dns_fuzz_stub/dns_fuzz_stub.cc
@@ -27,7 +27,7 @@ namespace {
void CrashDoubleFree(void) {
// Cause ASAN to detect a double-free
void *p = malloc(1);
- LOG(INFO) << "Allocated p=" << p << ". Double-freeing...";
+ VLOG(0) << "Allocated p=" << p << ". Double-freeing...";
free(p);
free(p);
}
@@ -72,7 +72,7 @@ bool ReadTestCase(const char* filename,
*crash_test = dict->HasKey("crash_test");
if (*crash_test) {
- LOG(INFO) << filename << ": crash_test is set!";
+ VLOG(0) << filename << ": crash_test is set!";
return true;
}
@@ -126,7 +126,7 @@ bool ReadTestCase(const char* filename,
}
DCHECK(resp_buf->size() == resp_size);
- LOG(INFO) << "Query: id=" << id_int << ", "
+ VLOG(0) << "Query: id=" << id_int << ", "
szym 2013/11/25 17:19:00 Don't know if the fuzzer framework parses the log
scottmg 2013/11/25 17:20:09 I'll revert the changes in this file.
<< "qname=" << *qname << ", "
<< "qtype=" << qtype_int << ", "
<< "resp_size=" << resp_size;
@@ -141,7 +141,7 @@ void RunTestCase(uint16 id, std::string& qname, uint16 qtype,
std::copy(resp_buf.begin(), resp_buf.end(), response.io_buffer()->data());
if (!response.InitParse(resp_buf.size(), query)) {
- LOG(INFO) << "InitParse failed.";
+ VLOG(0) << "InitParse failed.";
return;
}
@@ -150,7 +150,7 @@ void RunTestCase(uint16 id, std::string& qname, uint16 qtype,
net::DnsResponse::Result result = response.ParseToAddressList(
&address_list, &ttl);
if (result != net::DnsResponse::DNS_PARSE_OK) {
- LOG(INFO) << "ParseToAddressList failed: " << result;
+ VLOG(0) << "ParseToAddressList failed: " << result;
return;
}
@@ -161,7 +161,7 @@ void RunTestCase(uint16 id, std::string& qname, uint16 qtype,
result_line << address_list[i].ToString() << " ";
result_line << "}, ttl=" << ttl.InSeconds() << "s";
- LOG(INFO) << result_line.str();
+ VLOG(0) << result_line.str();
}
bool ReadAndRunTestCase(const char* filename) {
@@ -171,14 +171,14 @@ bool ReadAndRunTestCase(const char* filename) {
std::vector<char> resp_buf;
bool crash_test = false;
- LOG(INFO) << "Test case: " << filename;
+ VLOG(0) << "Test case: " << filename;
// ReadTestCase will print a useful error message if it fails.
if (!ReadTestCase(filename, &id, &qname, &qtype, &resp_buf, &crash_test))
return false;
if (crash_test) {
- LOG(INFO) << "Crashing.";
+ VLOG(0) << "Crashing.";
CrashDoubleFree();
// if we're not running under ASAN, that might not have worked
CrashNullPointerDereference();
« no previous file with comments | « net/tools/balsa/balsa_frame.cc ('k') | net/tools/dump_cache/simple_cache_dumper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698