improved bind failure messages

This commit is contained in:
Jeff Hill
2000-05-25 22:34:31 +00:00
parent 3dd26027d6
commit 10b3db1964
2 changed files with 2 additions and 2 deletions

View File

@@ -294,7 +294,7 @@ LOCAL int req_server (void)
/* get server's Internet address */
if (bind(IOC_sock, (struct sockaddr *)&serverAddr, sizeof(serverAddr)) < 0) {
errlogPrintf ( "CAS: TCP server port bind error was %s\n", SOCKERRSTR ( SOCKERRNO ) );
errlogPrintf ( "CAS: TCP server port bind error was \"%s\"\n", SOCKERRSTR ( SOCKERRNO ) );
socket_close (IOC_sock);
threadSuspendSelf ();
}

View File

@@ -185,7 +185,7 @@ int cast_server(void)
/* get server's Internet address */
if( bind(IOC_cast_sock, (struct sockaddr *)&sin, sizeof (sin)) < 0){
epicsPrintf ("CAS: UDP server port bind error was %s\n", SOCKERRSTR ( SOCKERRNO ) );
epicsPrintf ("CAS: UDP server port bind error was \"%s\"\n", SOCKERRSTR ( SOCKERRNO ) );
socket_close (IOC_cast_sock);
threadSuspendSelf ();
}