From 4997a508c831a5e084fb9b1ae9791c0981a8aa0a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 20 Feb 2007 09:48:31 +0000 Subject: * fhandler_socket.cc (fhandler_socket::bind): Remove printing wrong errno in debug output. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_socket.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 623ee6a..b7a1a3a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2007-02-20 Corinna Vinschen + + * fhandler_socket.cc (fhandler_socket::bind): Remove printing wrong + errno in debug output. + 2007-02-19 Christopher Faylor Remove extraneous whitespace. diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 22ba0c3..6b8cd75 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -756,13 +756,13 @@ fhandler_socket::bind (const struct sockaddr *name, int namelen) sin.sin_addr.s_addr = htonl (INADDR_LOOPBACK); if (::bind (get_socket (), (sockaddr *) &sin, len)) { - syscall_printf ("AF_LOCAL: bind failed %d", get_errno ()); + syscall_printf ("AF_LOCAL: bind failed"); set_winsock_errno (); goto out; } if (::getsockname (get_socket (), (sockaddr *) &sin, &len)) { - syscall_printf ("AF_LOCAL: getsockname failed %d", get_errno ()); + syscall_printf ("AF_LOCAL: getsockname failed"); set_winsock_errno (); goto out; } -- cgit v1.1