mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
fix logging of sockets
This commit is contained in:
parent
4b335ab464
commit
2fdcea54f5
2 changed files with 3 additions and 3 deletions
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue