Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

76 lines
1.0 KiB

/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
iwdbg.c
Abstract:
The debug functions
Author:
Stefan Solomon 03/11/1996
Revision History:
--*/
#include "precomp.h"
#pragma hdrstop
//*** TRACE ID FOR IPXWAN ***
DWORD IpxWanTraceID;
//*** Functions for Debug Printing ***
#if DBG
VOID
SsAssert(
IN PVOID FailedAssertion,
IN PVOID FileName,
IN ULONG LineNumber
)
{
Trace(IPXWAN_ALERT, "\nAssertion failed: %s\n at line %ld of %s\n",
FailedAssertion, LineNumber, FileName);
DbgUserBreakPoint( );
} // SsAssert
#endif
VOID
StartTracing(VOID)
{
IpxWanTraceID = TraceRegister("IPXWAN");
}
VOID
Trace(ULONG ComponentID,
char *Format,
...)
{
va_list arglist;
va_start(arglist, Format);
TraceVprintfEx(IpxWanTraceID,
ComponentID | TRACE_USE_MASK,
Format,
arglist);
va_end(arglist);
}
VOID
StopTracing(VOID)
{
TraceDeregister(IpxWanTraceID);
}