/*************************************************************************** Name : fdebug.C Comment : Factored out debug code Functions : (see Prototypes just below) Copyright (c) Microsoft Corp. 1991, 1992, 1993 Revision Log Num Date Name Description --- -------- ---------- ----------------------------------------------- ***************************************************************************/ #define USE_DEBUG_CONTEXT DEBUG_CONTEXT_T30_COMM #include "prep.h" #include #include "efaxcb.h" #include "fcomapi.h" #include "fcomint.h" #include "fdebug.h" #include "glbproto.h" #define FLUSHBUFSIZE 256 #undef USE_DEBUG_CONTEXT #define USE_DEBUG_CONTEXT DEBUG_CONTEXT_T30_CLASS1 void far D_HexPrint(LPB b1, UWORD incnt) { #ifdef DEBUG BYTE b2[FLUSHBUFSIZE]; UWORD i, j; DEBUG_FUNCTION_NAME(("D_HexPrint")); DebugPrintEx( DEBUG_MSG, "b1=0x%08lx incnt=%d", (LPSTR)b1, incnt); for(i=0; icbInQue != pTG->PrevcbInQue) || (lpcs->cbOutQue != pTG->PrevcbOutQue) || (lpcs->fXoffHold != (DWORD)pTG->PrevfXoffHold) || (lpcs->fXoffSent != (DWORD)pTG->PrevfXoffSent) ) { DebugPrintEx( DEBUG_MSG, "STAT::: InQ=%d PutQ=%d XoffHold=%d XoffSent=%d", lpcs->cbInQue, lpcs->cbOutQue, lpcs->fXoffHold, lpcs->fXoffSent); } if( lpcs->fCtsHold || lpcs->fDsrHold || lpcs->fRlsdHold || lpcs->fEof || lpcs->fTxim ) { DebugPrintEx( DEBUG_MSG, "???::: CTShold=%d DSRhold=%d RLShold=%d FOF=%d TXim=%d", lpcs->fCtsHold, lpcs->fDsrHold, lpcs->fRlsdHold, lpcs->fEof, lpcs->fTxim); } pTG->PrevfXoffHold = lpcs->fXoffHold; pTG->PrevfXoffSent = lpcs->fXoffSent; pTG->PrevcbInQue = (USHORT) lpcs->cbInQue; pTG->PrevcbOutQue = (USHORT) lpcs->cbOutQue; } #undef USE_DEBUG_CONTEXT #define USE_DEBUG_CONTEXT DEBUG_CONTEXT_T30_CLASS1 #undef USE_DEBUG_CONTEXT #define USE_DEBUG_CONTEXT DEBUG_CONTEXT_T30_COMM #endif //DEBUG