o fixed errno based diagnostic converting errno to string after errno was replaced

This commit is contained in:
Jeff Hill
2004-09-22 18:55:17 +00:00
parent c020be9e04
commit 1584471439

View File

@@ -248,8 +248,8 @@ void rsrv_online_notify_task(void *pParm)
status = send (sock, (char *)&msg, sizeof(msg), 0);
if (status < 0) {
char sockErrBuf[64];
ipAddrToDottedIP (&pNode->addr.ia, buf, sizeof(buf));
epicsSocketConvertErrnoToString ( sockErrBuf, sizeof ( sockErrBuf ) );
ipAddrToDottedIP (&pNode->addr.ia, buf, sizeof(buf));
errlogPrintf ( "%s: CA beacon (send to \"%s\") error was \"%s\"\n",
__FILE__, buf, sockErrBuf);
}