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.

68 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. net\ip\rtrmgr\logtrdefs.c
  5. Abstract:
  6. RASMAN defines for tracing and logging
  7. Revision History:
  8. Gurdeep Singh Pall 8/16/96 Created
  9. --*/
  10. #ifndef __LOGTRDEF_H__
  11. #define __LOGTRDEF_H__
  12. //
  13. // constants and macros used for tracing
  14. //
  15. #define RASMAN_TRACE_ANY ((DWORD)0xFFFF0000 | TRACE_USE_MASK | TRACE_USE_MSEC)
  16. #define RASMAN_TRACE_ERR ((DWORD)0x00010000 | TRACE_USE_MASK | TRACE_USE_MSEC)
  17. #define RASMAN_TRACE_CONNECTION ((DWORD)0x00020000 | TRACE_USE_MASK | TRACE_USE_MSEC | TRACE_USE_DATE)
  18. #define RASMAN_TRACE_OPENCLOSE ((DWORD)0x00040000 | TRACE_USE_MASK | TRACE_USE_MSEC)
  19. //#define RASMAN_TRACE_ROUTE ((DWORD)0x00080000 | TRACE_USE_MASK | TRACE_USE_MSEC)
  20. //#define RASMAN_TRACE_MIB ((DWORD)0x00100000 | TRACE_USE_MASK | TRACE_USE_MSEC)
  21. //#define RASMAN_TRACE_GLOBAL ((DWORD)0x00200000 | TRACE_USE_MASK | TRACE_USE_MSEC)
  22. //#define RASMAN_TRACE_DEMAND ((DWORD)0x00400000 | TRACE_USE_MASK | TRACE_USE_MSEC)
  23. //#define RASMAN_TRACE_RTRDISC ((DWORD)0x00800000 | TRACE_USE_MASK | TRACE_USE_MSEC)
  24. #define RASMAN_TRACE_LOCK ((DWORD)0x01000000 | TRACE_USE_MASK | TRACE_USE_MSEC)
  25. #define TRACEID TraceHandle
  26. #define Trace0(l,a) \
  27. TracePrintfEx(TRACEID, RASMAN_TRACE_ ## l, a)
  28. #define Trace1(l,a,b) \
  29. TracePrintfEx(TRACEID, RASMAN_TRACE_ ## l, a, b)
  30. #define Trace2(l,a,b,c) \
  31. TracePrintfEx(TRACEID, RASMAN_TRACE_ ## l, a, b, c)
  32. #define Trace3(l,a,b,c,d) \
  33. TracePrintfEx(TRACEID, RASMAN_TRACE_ ## l, a, b, c, d)
  34. #define Trace4(l,a,b,c,d,e) \
  35. TracePrintfEx(TRACEID, RASMAN_TRACE_ ## l, a, b, c, d, e)
  36. #define Trace5(l,a,b,c,d,e,f) \
  37. TracePrintfEx(TRACEID, RASMAN_TRACE_ ## l, a, b, c, d, e, f)
  38. #define Trace6(l,a,b,c,d,e,f,g) \
  39. TracePrintfEx(TRACEID, RASMAN_TRACE_ ## l, a, b, c, d, e, f, g)
  40. #define Trace7(l,a,b,c,d,e,f,g,h) \
  41. TracePrintfEx(TRACEID, RASMAN_TRACE_ ## l, a, b, c, d, e, f, g, h)
  42. #ifdef RASMAN_DEBUG
  43. #define TraceEnter(X) TracePrintfEx(TRACEID, RASMAN_TRACE_ENTER, "Entered: "X)
  44. #define TraceLeave(X) TracePrintfEx(TRACEID, RASMAN_TRACE_ENTER, "Leaving: "X"\n")
  45. #else // RASMAN_DEBUG
  46. #define TraceEnter(X)
  47. #define TraceLeave(X)
  48. #endif // RASMAN_DEBUG
  49. #endif // __LOGTRDEF_H__