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
2.5 KiB

  1. /* (C) 1997 Microsoft Corp.
  2. *
  3. * file : Trace.h
  4. * author : Erik Mavrinac
  5. *
  6. * description: MCSMUX tracing defines.
  7. */
  8. #if DBG
  9. // Used when hIca is not known.
  10. #define ErrOut(str) DbgPrint("MCSMUX: **** ERROR: " str "\n")
  11. #define ErrOut1(str, arg1) DbgPrint("MCSMUX: **** ERROR: " str "\n", arg1)
  12. #define WarnOut(str) DbgPrint("MCSMUX: warning: " str "\n")
  13. #define TraceOut(str) DbgPrint("MCSMUX: " str "\n")
  14. // Used for when the hIca is known.
  15. // These ...Out() macros are graded by the number of extra parameters:
  16. // Out() is only a string, Out1() is one stack parameter, etc.
  17. // We use non-ICA-defined trace types here to allow clean separation from
  18. // WDTShare tracing, which uses the ICA TT_API*, TT_OUT*, TT_IN* macros.
  19. #define MCS_TT_Error TT_ERROR
  20. #define MCS_TT_Warning 0x02000000
  21. #define MCS_TT_Trace 0x04000000
  22. #define MCS_TT_Dump 0x08000000
  23. #define ErrOutIca(hica, str) \
  24. IcaTrace(hica, TC_PD, MCS_TT_Error, "MCSMUX: **** ERROR: " str "\n")
  25. #define ErrOutIca1(hica, str, arg1) \
  26. IcaTrace(hica, TC_PD, MCS_TT_Error, "MCSMUX: **** ERROR: " str "\n", arg1)
  27. #define ErrOutIca2(hica, str, arg1, arg2) \
  28. IcaTrace(hica, TC_PD, MCS_TT_Error, "MCSMUX: **** ERROR: " str "\n", arg1, arg2)
  29. #define WarnOutIca(hica, str) \
  30. IcaTrace(hica, TC_PD, MCS_TT_Warning, "MCSMUX: warning: " str "\n")
  31. #define WarnOutIca1(hica, str, arg1) \
  32. IcaTrace(hica, TC_PD, MCS_TT_Warning, "MCSMUX: warning: " str "\n", arg1)
  33. #define WarnOutIca2(hica, str, arg1, arg2) \
  34. IcaTrace(hica, TC_PD, MCS_TT_Warning, "MCSMUX: warning: " str "\n", arg1, arg2)
  35. #define TraceOutIca(hica, str) \
  36. IcaTrace(hica, TC_PD, MCS_TT_Trace, "MCSMUX: " str "\n")
  37. #define TraceOutIca1(hica, str, arg1) \
  38. IcaTrace(hica, TC_PD, MCS_TT_Trace, "MCSMUX: " str "\n", arg1)
  39. #define TraceOutIca2(hica, str, arg1, arg2) \
  40. IcaTrace(hica, TC_PD, MCS_TT_Trace, "MCSMUX: " str "\n", arg1, arg2)
  41. #else
  42. // Used when hIca is not known.
  43. #define ErrOut(str)
  44. #define ErrOut1(str, arg1)
  45. #define WarnOut(str)
  46. #define TraceOut(str)
  47. // Used for when the hIca is known.
  48. #define ErrOutIca(hica, str)
  49. #define ErrOutIca1(hica, str, arg1)
  50. #define ErrOutIca2(hica, str, arg1, arg2)
  51. #define WarnOutIca(hica, str)
  52. #define WarnOutIca1(hica, str, arg1)
  53. #define WarnOutIca2(hica, str, arg1, arg2)
  54. #define TraceOutIca(hica, str)
  55. #define TraceOutIca1(hica, str, arg1)
  56. #define TraceOutIca2(hica, str, arg1, arg2)
  57. #endif