cannot print sockets with %d in Windows, they are not small ints but maybe pointers.

This commit is contained in:
2019-09-17 17:45:33 +02:00
committed by Martin Konrad
parent 765af2efea
commit 9c18ce007a

View File

@@ -402,8 +402,8 @@ static void logClientConnect (logClient *pClient)
char sockErrBuf[128];
epicsSocketConvertErrnoToString (
sockErrBuf, sizeof ( sockErrBuf ) );
fprintf (stderr, "%s:%d shutdown(%d,SHUT_RD) error was \"%s\"\n",
__FILE__, __LINE__, pClient->sock, sockErrBuf);
fprintf (stderr, "%s:%d shutdown(sock,SHUT_RD) error was \"%s\"\n",
__FILE__, __LINE__, sockErrBuf);
/* not fatal (although it shouldn't happen) */
}