From e5d5584a04169f49ea5255b415f95b2f50ab3a17 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 15 Sep 2007 13:46:59 +0000 Subject: [PATCH] add logging to help catch a recurring assertion --- common/comms.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/comms.c b/common/comms.c index 2adcd2a77..f5af811d1 100644 --- a/common/comms.c +++ b/common/comms.c @@ -563,6 +563,7 @@ comms_getConType( const CommsCtxt* comms ) XP_Bool comms_getIsServer( const CommsCtxt* comms ) { + XP_ASSERT( !!comms ); return comms->isServer; } @@ -1025,6 +1026,11 @@ comms_checkIncomingStream( CommsCtxt* comms, XWStreamCtxt* stream, #ifdef DEBUG if ( !!recs ) { XP_ASSERT( lastMsgRcd <= recs->nextMsgID ); + if ( lastMsgRcd > recs->nextMsgID ) { + XP_LOGF( "bad: got lastMsgRcd of %ld, " + "nextMsgID is %ld", + lastMsgRcd, recs->nextMsgID ); + } XP_ASSERT( lastMsgRcd < 0x0000FFFF ); recs->lastACK = (XP_U16)lastMsgRcd; }