Bug 1463266 - remove \n in MOZ_LOG. r=me
authorJorg K <jorgk@jorgk.com>
Fri, 18 Oct 2019 19:18:03 +0200
changeset 37180 0d0c445e5077fe89269ff198963576ab5b1d9161
parent 37179 5d026b6b005ea8d5bd5e09c1286adce59e9cc6c2
child 37181 77ba41e70f440f854636b8878a8b924522deb705
push id395
push userclokep@gmail.com
push dateMon, 02 Dec 2019 19:38:57 +0000
reviewersme
bugs1463266
Bug 1463266 - remove \n in MOZ_LOG. r=me
ldap/xpcom/src/nsLDAPMessage.cpp
--- a/ldap/xpcom/src/nsLDAPMessage.cpp
+++ b/ldap/xpcom/src/nsLDAPMessage.cpp
@@ -62,25 +62,24 @@ nsLDAPMessage::~nsLDAPMessage(void) {
       case LDAP_RES_EXTENDED:
       case LDAP_RES_ANY:
         // success
         break;
 
       case LDAP_SUCCESS:
         // timed out (dunno why LDAP_SUCCESS is used to indicate this)
         MOZ_LOG(gLDAPLogModule, mozilla::LogLevel::Warning,
-                ("nsLDAPMessage::~nsLDAPMessage: ldap_msgfree() "
-                 "timed out\n"));
+                ("nsLDAPMessage::~nsLDAPMessage: ldap_msgfree() timed out"));
         break;
 
       default:
         // other failure
         MOZ_LOG(gLDAPLogModule, mozilla::LogLevel::Warning,
                 ("nsLDAPMessage::~nsLDAPMessage: ldap_msgfree() "
-                 "failed: %s\n",
+                 "failed: %s",
                  ldap_err2string(rc)));
         break;
     }
   }
 
   if (mMatchedDn) {
     ldap_memfree(mMatchedDn);
   }