mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
remove some logging
This commit is contained in:
parent
bd35503daa
commit
bf2ab49c20
4 changed files with 9 additions and 11 deletions
|
@ -83,7 +83,7 @@ public class DevID {
|
|||
s_relayDevID = asStr;
|
||||
}
|
||||
}
|
||||
Log.d( TAG, "getRelayDevID() => %s", s_relayDevID );
|
||||
// Log.d( TAG, "getRelayDevID() => %s", s_relayDevID );
|
||||
return s_relayDevID;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ public class NetStateCache {
|
|||
}
|
||||
|
||||
boolean result = s_netAvail || s_onSDKSim;
|
||||
Log.d( TAG, "netAvail() => %b", result );
|
||||
// Log.d( TAG, "netAvail() => %b", result );
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -935,10 +935,10 @@ Java_org_eehouse_android_xw4_jni_XwJNI_initJNI
|
|||
|
||||
/* pthread_mutex_init( &state->msgMutex, NULL ); */
|
||||
|
||||
XP_LOGF( "%s: initing srand with %d", __func__, seed );
|
||||
/* XP_LOGF( "%s: initing srand with %d", __func__, seed ); */
|
||||
srandom( seed );
|
||||
|
||||
LOG_RETURNF( "%p", state );
|
||||
/* LOG_RETURNF( "%p", state ); */
|
||||
return (jint) state;
|
||||
}
|
||||
|
||||
|
@ -973,7 +973,6 @@ Java_org_eehouse_android_xw4_jni_XwJNI_game_1makeNewGame
|
|||
CommonPrefs cp;
|
||||
loadCommonPrefs( env, &cp, j_cp );
|
||||
|
||||
XP_LOGF( "calling game_makeNewGame" );
|
||||
game_makeNewGame( MPPARM(mpool) &state->game, gi, globals->util, dctx, &cp,
|
||||
globals->xportProcs );
|
||||
|
||||
|
@ -1000,7 +999,6 @@ JNIEXPORT void JNICALL Java_org_eehouse_android_xw4_jni_XwJNI_game_1dispose
|
|||
( JNIEnv* env, jclass claz, GamePtrType gamePtr )
|
||||
{
|
||||
JNIState* state = getState( env, gamePtr, __func__ );
|
||||
LOG_FUNC();
|
||||
|
||||
#ifdef MEM_DEBUG
|
||||
MemPoolCtx* mpool = state->mpool;
|
||||
|
|
|
@ -557,7 +557,7 @@ gi_readFromStream( MPFORMAL XWStreamCtxt* stream, CurGameInfo* gi )
|
|||
gi->nPlayers = (XP_U8)stream_getBits( stream, NPLAYERS_NBITS );
|
||||
gi->boardSize = (XP_U8)stream_getBits( stream, nColsNBits );
|
||||
gi->serverRole = (DeviceRole)stream_getBits( stream, 2 );
|
||||
XP_LOGF( "%s: read serverRole of %d", __func__, gi->serverRole );
|
||||
/* XP_LOGF( "%s: read serverRole of %d", __func__, gi->serverRole ); */
|
||||
gi->hintsNotAllowed = stream_getBits( stream, 1 );
|
||||
if ( strVersion < STREAM_VERS_ROBOTIQ ) {
|
||||
(void)stream_getBits( stream, 2 );
|
||||
|
@ -581,7 +581,7 @@ gi_readFromStream( MPFORMAL XWStreamCtxt* stream, CurGameInfo* gi )
|
|||
|
||||
if ( STREAM_VERS_MULTIADDR <= strVersion ) {
|
||||
gi->forceChannel = stream_getBits( stream, 2 );
|
||||
XP_LOGF( "%s: loaded forceChannel: %d", __func__, gi->forceChannel );
|
||||
/* XP_LOGF( "%s: loaded forceChannel: %d", __func__, gi->forceChannel ); */
|
||||
}
|
||||
|
||||
gi->gameID = strVersion < STREAM_VERS_BLUETOOTH2 ?
|
||||
|
@ -623,7 +623,7 @@ gi_writeToStream( XWStreamCtxt* stream, const CurGameInfo* gi )
|
|||
XP_U16 nColsNBits;
|
||||
#ifdef STREAM_VERS_BIGBOARD
|
||||
XP_U16 strVersion = stream_getVersion( stream );
|
||||
XP_LOGF( "%s: strVersion = 0x%x", __func__, strVersion );
|
||||
/* XP_LOGF( "%s: strVersion = 0x%x", __func__, strVersion ); */
|
||||
XP_ASSERT( STREAM_SAVE_PREVWORDS <= strVersion );
|
||||
nColsNBits = STREAM_VERS_BIGBOARD > strVersion ? NUMCOLS_NBITS_4
|
||||
: NUMCOLS_NBITS_5;
|
||||
|
@ -636,7 +636,7 @@ gi_writeToStream( XWStreamCtxt* stream, const CurGameInfo* gi )
|
|||
stream_putBits( stream, NPLAYERS_NBITS, gi->nPlayers );
|
||||
stream_putBits( stream, nColsNBits, gi->boardSize );
|
||||
stream_putBits( stream, 2, gi->serverRole );
|
||||
XP_LOGF( "%s: wrote serverRole of %d", __func__, gi->serverRole );
|
||||
/* XP_LOGF( "%s: wrote serverRole of %d", __func__, gi->serverRole ); */
|
||||
stream_putBits( stream, 1, gi->hintsNotAllowed );
|
||||
stream_putBits( stream, 2, gi->phoniesAction );
|
||||
stream_putBits( stream, 1, gi->timerEnabled );
|
||||
|
@ -644,7 +644,7 @@ gi_writeToStream( XWStreamCtxt* stream, const CurGameInfo* gi )
|
|||
stream_putBits( stream, 1, gi->allowHintRect );
|
||||
stream_putBits( stream, 1, gi->confirmBTConnect );
|
||||
stream_putBits( stream, 2, gi->forceChannel );
|
||||
XP_LOGF( "%s: wrote forceChannel: %d", __func__, gi->forceChannel );
|
||||
/* XP_LOGF( "%s: wrote forceChannel: %d", __func__, gi->forceChannel ); */
|
||||
|
||||
if ( 0 ) {
|
||||
#ifdef STREAM_VERS_BIGBOARD
|
||||
|
|
Loading…
Reference in a new issue