]> granicus.if.org Git - libevent/commitdiff
Change log message in evutil_make_socket_nonblocking in win32
authorguoxiang1996 <mzygdeaq@qq.com>
Sat, 10 Oct 2020 19:23:14 +0000 (03:23 +0800)
committerGitHub <noreply@github.com>
Sat, 10 Oct 2020 19:23:14 +0000 (22:23 +0300)
Co-authored-by: guoxiang2 <guoxiang2@yy.com>
evutil.c

index a9207188e698cfa95b731094c74405d65b824348..95d426ac49f9509000912646fcf1ce831ffae020 100644 (file)
--- a/evutil.c
+++ b/evutil.c
@@ -512,7 +512,7 @@ evutil_make_socket_nonblocking(evutil_socket_t fd)
        {
                unsigned long nonblocking = 1;
                if (ioctlsocket(fd, FIONBIO, &nonblocking) == SOCKET_ERROR) {
-                       event_sock_warn(fd, "fcntl(%d, F_GETFL)", (int)fd);
+                       event_sock_warn(fd, "ioctlsocket(%d, FIONBIO, &%lu)", (int)fd, (unsigned long)nonblocking);
                        return -1;
                }
        }