fix logging of sockets

This commit is contained in:
Eric House 2013-01-26 18:55:55 -08:00
parent 4b335ab464
commit 2fdcea54f5
2 changed files with 3 additions and 3 deletions

View file

@ -373,7 +373,7 @@ CookieRef::AlreadyHere( HostID hid, unsigned short seed, const AddrInfo* addr,
bool* spotTaken )
{
logf( XW_LOGINFO, "%s(hid=%d,seed=%x(%d),socket=%d)", __func__,
hid, seed, seed, socket );
hid, seed, seed, addr->socket() );
bool here = false;
RWWriteLock rwl( &m_socketsRWLock );

View file

@ -173,7 +173,7 @@ XWThreadPool::CloseSocket( const AddrInfo* addr )
++iter;
}
}
logf( XW_LOGINFO, "CLOSING socket %d", socket );
logf( XW_LOGINFO, "CLOSING socket %d", addr->socket() );
close( addr->socket() );
/* if ( do_interrupt ) { */
/* We always need to interrupt the poll because the socket we're closing
@ -187,7 +187,7 @@ XWThreadPool::CloseSocket( const AddrInfo* addr )
void
XWThreadPool::EnqueueKill( const AddrInfo* addr, const char* const why )
{
logf( XW_LOGINFO, "%s(%d) reason: %s", __func__, socket, why );
logf( XW_LOGINFO, "%s(%d) reason: %s", __func__, addr->socket(), why );
if ( addr->isTCP() ) {
SockInfo si;
si.m_type = STYPE_UNKNOWN;