Bug 1060419 - convert one nsPrintfCString to MOZ_LOG, r?froydnj draft
authorTom Tromey <tom@tromey.com>
Mon, 19 Dec 2016 13:15:14 -0700
changeset 486164 3de67b82e8f2cd0519e48d5504c558d9b4334c47
parent 486163 9cc13c9ac928768e4f14e6b29c939d2c1474591a
child 486165 5cfcec8449c1d993880c83800a751d953a0d5a2e
push id45909
push userbmo:ttromey@mozilla.com
push dateFri, 17 Feb 2017 16:00:11 +0000
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;