mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
log connType in nli
This commit is contained in:
parent
b9c34b2b31
commit
92200779ac
1 changed files with 11 additions and 3 deletions
|
@ -250,9 +250,17 @@ logNLI( const NetLaunchInfo* nli, const char* callerFunc, const int callerLine )
|
||||||
{
|
{
|
||||||
XP_LOGFF( "called by %s(), line %d", callerFunc, callerLine );
|
XP_LOGFF( "called by %s(), line %d", callerFunc, callerLine );
|
||||||
|
|
||||||
XP_UCHAR buf[256];
|
XP_UCHAR conTypes[128] = {0};
|
||||||
XP_SNPRINTF( buf, VSIZE(buf), "{ctyps: %x, nPlayersT: %d; nPlayersH: %d; "
|
int offset = 0;
|
||||||
"gameID: %d; inviteID: %s, mqttid: %s}", nli->_conTypes,
|
CommsConnType typ;
|
||||||
|
for ( XP_U32 state = 0; types_iter( nli->_conTypes, &typ, &state ); ) {
|
||||||
|
const char* asstr = ConnType2Str( typ );
|
||||||
|
offset += XP_SNPRINTF( &conTypes[offset], sizeof(conTypes)-offset, "%s,", asstr );
|
||||||
|
}
|
||||||
|
|
||||||
|
XP_UCHAR buf[256+128];
|
||||||
|
XP_SNPRINTF( buf, VSIZE(buf), "{ctyps: [%s], nPlayersT: %d; nPlayersH: %d; "
|
||||||
|
"gameID: %d; inviteID: %s, mqttid: %s}", conTypes,
|
||||||
nli->nPlayersT, nli->nPlayersH, nli->gameID, nli->inviteID,
|
nli->nPlayersT, nli->nPlayersH, nli->gameID, nli->inviteID,
|
||||||
nli->mqttDevID );
|
nli->mqttDevID );
|
||||||
XP_LOGF( "%s", buf );
|
XP_LOGF( "%s", buf );
|
||||||
|
|
Loading…
Reference in a new issue