Bugfixes for compiling with -DDEBUG

This commit is contained in:
Ralph Lange
2004-02-03 13:42:42 +00:00
parent 2a8a75fdc9
commit 429a135265
6 changed files with 36 additions and 28 deletions

View File

@@ -64,8 +64,9 @@ tcpRecvWatchdog::expire ( const epicsTime & /* currentTime */ ) // X aCC 361
"o application is blocked in a callback from the client library\n" );
}
# ifdef DEBUG
epicsGuard < epicsMutex > guard ( this->mutex );
char hostName[128];
this->iiu.hostName ( hostName, sizeof (hostName) );
this->iiu.hostName ( guard, hostName, sizeof (hostName) );
debugPrintf ( ( "CA server \"%s\" unresponsive after %g inactive sec"
"- disconnecting.\n",
hostName, this->period ) );