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

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

Issue 432553003: Remove redundant mapping of net errors to strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to comments Created 6 years, 4 months 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/quic/crypto/proof_verifier_chromium.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/gdig/gdig.cc
diff --git a/net/tools/gdig/gdig.cc b/net/tools/gdig/gdig.cc
index fbee8860ad65fa2fc7c778fa04d3d49701966e3a..de62de19392b311fe4adfbe150f6097ca4b135c7 100644
--- a/net/tools/gdig/gdig.cc
+++ b/net/tools/gdig/gdig.cc
@@ -487,7 +487,8 @@ void GDig::OnResolveComplete(unsigned entry_index,
static_cast<int>(resolve_time.InMilliseconds()),
replay_log_[entry_index].domain_name.c_str(), val);
if (val != OK) {
- printf("%s", ErrorToString(val));
+ std::string error_string = ErrorToString(val);
+ printf("%s", error_string.c_str());
} else {
for (size_t i = 0; i < address_list->size(); ++i) {
if (i != 0)
« no previous file with comments | « net/quic/crypto/proof_verifier_chromium.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698