add logging to help catch a recurring assertion

This commit is contained in:
ehouse 2007-09-15 13:46:59 +00:00
parent 25ae118c4f
commit e5d5584a04

View file

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