diff --git a/xwords4/linux/relaycon.c b/xwords4/linux/relaycon.c index 8a8a49fb3..a15232e09 100644 --- a/xwords4/linux/relaycon.c +++ b/xwords4/linux/relaycon.c @@ -222,7 +222,7 @@ relaycon_receive( GIOChannel* source, GIOCondition condition, gpointer data ) ((0 <= nRead)? nRead : 0) ); XP_LOGF( "%s: read %zd bytes ('%s')", __func__, nRead, b64 ); g_free( b64 ); -#ifdef LOG_PACKET_MD5SUMS +#ifdef COMMS_CHECKSUM gchar* sum = g_compute_checksum_for_data( G_CHECKSUM_MD5, buf, nRead ); XP_LOGF( "%s: read %zd bytes ('%s')(sum=%s)", __func__, nRead, b64, sum ); g_free( sum ); @@ -349,7 +349,7 @@ sendIt( RelayConStorage* storage, const XP_U8* msgbuf, XP_U16 len ) ssize_t nSent = sendto( storage->socket, msgbuf, len, 0, /* flags */ (struct sockaddr*)&storage->saddr, sizeof(storage->saddr) ); -#ifdef LOG_PACKET_MD5SUMS +#ifdef COMMS_CHECKSUM gchar* sum = g_compute_checksum_for_data( G_CHECKSUM_MD5, msgbuf, len ); XP_LOGF( "%s: sent %d bytes with sum %s", __func__, len, sum ); g_free( sum );