Bug 1027004 - Add newline to MOZ_DISABLE_NONLOCAL_CONNECTIONS fprintf_stderr(); r=froydnj
authorEd Morley <emorley@mozilla.com>
Wed, 18 Jun 2014 14:46:56 +0100
changeset 189319 6894b106f39e
parent 189318 b70f0664acf7
child 189320 eb90458ef6e6
push id45038
push useremorley@mozilla.com
push dateWed, 18 Jun 2014 13:47:37 +0000
treeherdermozilla-inbound@6894b106f39e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1027004
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1027004 - Add newline to MOZ_DISABLE_NONLOCAL_CONNECTIONS fprintf_stderr(); r=froydnj
netwerk/base/src/nsSocketTransport2.cpp
--- a/netwerk/base/src/nsSocketTransport2.cpp
+++ b/netwerk/base/src/nsSocketTransport2.cpp
@@ -1188,17 +1188,17 @@ nsSocketTransport::InitiateSocket()
             nsAutoCString ipaddr;
             nsRefPtr<nsNetAddr> netaddr = new nsNetAddr(&mNetAddr);
             netaddr->GetAddress(ipaddr);
             fprintf_stderr(stderr,
                            "Non-local network connections are disabled and a connection "
                            "attempt to %s (%s) was made.  You should only access hostnames "
                            "available via the test networking proxy (if running mochitests) "
                            "or from a test-specific httpd.js server (if running xpcshell tests)."
-                           "  Browser services should be disabled or redirected to a local server.",
+                           " Browser services should be disabled or redirected to a local server.\n",
                            mHost.get(), ipaddr.get());
             MOZ_CRASH("Attempting to connect to non-local address!");
         }
     }
 
     // Hosts/Proxy Hosts that are Local IP Literals should not be speculatively
     // connected - Bug 853423.
     if (mConnectionFlags & nsISocketTransport::DISABLE_RFC1918 &&