mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
remove or tweak logging
This commit is contained in:
parent
5fa44e54fa
commit
f335ea7ad9
5 changed files with 9 additions and 8 deletions
|
@ -110,7 +110,7 @@ getMQTTDevID( XW_DUtilCtxt* dutil, XWEnv xwe, XP_Bool forceNew, MQTTDevID* devID
|
|||
dutil_loadPtr( dutil, xwe, MQTT_DEVID_KEY, SUFFIX_MQTT_DEVID, &tmp, &len );
|
||||
}
|
||||
|
||||
XP_LOGFF( "len: %d; sizeof(tmp): %zu", len, sizeof(tmp) );
|
||||
/* XP_LOGFF( "len: %d; sizeof(tmp): %zu", len, sizeof(tmp) ); */
|
||||
if ( forceNew || len != sizeof(tmp) ) { /* not found, or bogus somehow */
|
||||
int total = 0;
|
||||
for ( int ii = 0; ii < NUM_RUNS; ++ii ) {
|
||||
|
@ -144,7 +144,7 @@ getMQTTDevID( XW_DUtilCtxt* dutil, XWEnv xwe, XP_Bool forceNew, MQTTDevID* devID
|
|||
}
|
||||
*devID = tmp;
|
||||
#endif
|
||||
LOG_RETURNF( MQTTDevID_FMT " key: %s", *devID, MQTT_DEVID_KEY );
|
||||
// LOG_RETURNF( MQTTDevID_FMT " key: %s", *devID, MQTT_DEVID_KEY );
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -263,10 +263,10 @@ game_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream, XWGame* game,
|
|||
XP_Bool hasComms;
|
||||
#endif
|
||||
strVersion = stream_getU8( stream );
|
||||
XP_DEBUGF( "%s: strVersion = 0x%x", __func__, (XP_U16)strVersion );
|
||||
XP_LOGFF( "strVersion = 0x%x", (XP_U16)strVersion );
|
||||
|
||||
if ( strVersion > CUR_STREAM_VERS ) {
|
||||
XP_LOGF( "%s: aborting; stream version too new (%d > %d)!", __func__,
|
||||
XP_LOGFF( "aborting; stream version too new (%d > %d)!",
|
||||
strVersion, CUR_STREAM_VERS );
|
||||
} else {
|
||||
do { /* do..while so can break */
|
||||
|
@ -277,7 +277,7 @@ game_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream, XWGame* game,
|
|||
success = XP_TRUE;
|
||||
break;
|
||||
} else if ( stream_getSize(stream) == 0 ) {
|
||||
XP_LOGF( "%s: gi was all we got; failing.", __func__ );
|
||||
XP_LOGFF( "gi was all we got; failing." );
|
||||
break;
|
||||
}
|
||||
game->util = util;
|
||||
|
|
|
@ -314,7 +314,7 @@ model_hashMatches( const ModelCtxt* model, const XP_U32 hash )
|
|||
{
|
||||
StackCtxt* stack = model->vol.stack;
|
||||
XP_Bool matches = hash == stack_getHash( stack );
|
||||
XP_LOGFF( "(hash=%X) => %d", hash, matches );
|
||||
XP_LOGFF( "(hash=%X) => %s", hash, boolToStr(matches) );
|
||||
return matches;
|
||||
}
|
||||
|
||||
|
|
|
@ -353,7 +353,7 @@ linux_dutil_loadPtr( XW_DUtilCtxt* duc, XWEnv XP_UNUSED(xwe), const XP_UCHAR* ke
|
|||
*lenp = 0; /* doesn't exist */
|
||||
}
|
||||
|
||||
XP_LOGF( "%s(key=%s) => len: %d", __func__, key, *lenp );
|
||||
/* XP_LOGFF( "(key=%s) => len: %d", key, *lenp ); */
|
||||
}
|
||||
|
||||
#ifdef XWFEATURE_SMS
|
||||
|
|
|
@ -110,7 +110,8 @@ log_callback( struct mosquitto *mosq, void *userdata, int level,
|
|||
XP_USE(mosq);
|
||||
XP_USE(userdata);
|
||||
XP_USE(level);
|
||||
XP_LOGFF( "msg: %s", str );
|
||||
XP_USE(str);
|
||||
/* XP_LOGFF( "msg: %s", str ); */
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue