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

Unified Diff: runtime/bin/socket_win.cc

Issue 426833004: Don't print errors to stderr in socket_*. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « runtime/bin/socket_macos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_win.cc
diff --git a/runtime/bin/socket_win.cc b/runtime/bin/socket_win.cc
index 4a9e2807e3f3d52c8197f53644230559c9ebbb73..baedfc09c8c3e682c1d1878541ed1a5a3ad1732a 100644
--- a/runtime/bin/socket_win.cc
+++ b/runtime/bin/socket_win.cc
@@ -106,7 +106,6 @@ intptr_t Socket::GetPort(intptr_t fd) {
if (getsockname(socket_handle->socket(),
&raw.addr,
&size) == SOCKET_ERROR) {
- Log::PrintErr("Error getsockname: %d\n", WSAGetLastError());
return 0;
}
return SocketAddress::GetAddrPort(&raw);
@@ -557,7 +556,6 @@ static bool SetBlockingHelper(intptr_t fd, bool blocking) {
u_long iMode = blocking ? 0 : 1;
int status = ioctlsocket(handle->socket(), FIONBIO, &iMode);
if (status != NO_ERROR) {
- Log::PrintErr("ioctlsocket FIONBIO failed: %d\n", status);
return false;
}
return true;
« no previous file with comments | « runtime/bin/socket_macos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698