Bug 1060419 - convert one nsPrintfCString to MOZ_LOG, r=froydnj
authorTom Tromey <tom@tromey.com>
Mon, 19 Dec 2016 13:15:14 -0700
changeset 372580 f595410db18f03cba967f94a87688cb155d25338
parent 372579 eff47106a91ec5ecf2122ddfa3dab690f4efba60
child 372581 9eab13b3a19a715f85c9809ac07d7c48d4879714
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1060419
milestone54.0a1
Bug 1060419 - convert one nsPrintfCString to MOZ_LOG, r=froydnj MozReview-Commit-ID: IFwMAtAgfRq
toolkit/components/url-classifier/ProtocolParser.cpp
--- a/toolkit/components/url-classifier/ProtocolParser.cpp
+++ b/toolkit/components/url-classifier/ProtocolParser.cpp
@@ -807,18 +807,18 @@ ProtocolParserProtobuf::ProcessOneRespon
 
   // Convert threat type to list name.
   nsCOMPtr<nsIUrlClassifierUtils> urlUtil =
     do_GetService(NS_URLCLASSIFIERUTILS_CONTRACTID);
   nsCString possibleListNames;
   nsresult rv = urlUtil->ConvertThreatTypeToListNames(aResponse.threat_type(),
                                                       possibleListNames);
   if (NS_FAILED(rv)) {
-    PARSER_LOG((nsPrintfCString("Threat type to list name conversion error: %d",
-                               aResponse.threat_type())).get());
+    PARSER_LOG(("Threat type to list name conversion error: %d",
+                aResponse.threat_type()));
     return NS_ERROR_FAILURE;
   }
 
   // Match the table name we received with one of the ones we requested.
   // We ignore the case where a threat type matches more than one list
   // per provider and return the first one. See bug 1287059."
   nsCString listName;
   nsTArray<nsCString> possibleListNameArray;