remove or tweak logging

This commit is contained in:
Eric House 2021-03-15 07:52:54 -07:00
parent 5fa44e54fa
commit f335ea7ad9
5 changed files with 9 additions and 8 deletions

View file

@ -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

View file

@ -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;

View file

@ -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;
}

View file

@ -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

View file

@ -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