From cd0cf0c3f2691c9907fc3433e46a316e39b688fe Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 24 Mar 2020 15:59:33 -0700 Subject: [PATCH] tweaks to logging --- .../app/src/main/java/org/eehouse/android/xw4/NFCUtils.java | 3 ++- xwords4/common/server.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NFCUtils.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NFCUtils.java index 64745b1ad..371c24d46 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NFCUtils.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/NFCUtils.java @@ -297,7 +297,8 @@ public class NFCUtils { result = msgs.toArray( new byte[msgs.size()][] ); } } - Log.d( TAG, "getMsgsFor() => %d msgs", result == null ? 0 : result.length ); + Log.d( TAG, "getMsgsFor(gameID=%d) => %d msgs", gameID, + result == null ? 0 : result.length ); return result; } diff --git a/xwords4/common/server.c b/xwords4/common/server.c index 1ea46af5c..771d92987 100644 --- a/xwords4/common/server.c +++ b/xwords4/common/server.c @@ -234,7 +234,7 @@ logNewState( XW_State old, XW_State newst, const char* caller ) if ( old != newst ) { char* oldStr = getStateStr(old); char* newStr = getStateStr(newst); - XP_LOGF( "state transition %s => %s (from %s())", oldStr, newStr, caller ); + XP_LOGFF( "state transition %s => %s (from %s())", oldStr, newStr, caller ); } } # define SETSTATE( s, st ) { \