Source code of Windows XP (NT5)
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.

78 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1991-92 Microsoft Corporation
  3. Module Name:
  4. scdebug.h
  5. Abstract:
  6. Contains debug macros used by the Service Controller.
  7. Author:
  8. Jonathan Schwartz (jschwart) 18-Nov-1999
  9. Revision History:
  10. 18-Nov-1999 jschwart
  11. Created from Service Controller's debugging macros
  12. --*/
  13. #ifndef _ELFDBG_H
  14. #define _ELFDBG_H
  15. #if DBG
  16. //
  17. // Debug output macros.
  18. //
  19. #define ELF_LOG0(level,string) \
  20. if( ElfDebugLevel & (DEBUG_ ## level)){ \
  21. DbgPrint("[ELF] %lx: " string,GetCurrentThreadId()); \
  22. }
  23. #define ELF_LOG1(level,string,var) \
  24. if( ElfDebugLevel & (DEBUG_ ## level)){ \
  25. DbgPrint("[ELF] %lx: " string,GetCurrentThreadId(),var); \
  26. }
  27. #define ELF_LOG2(level,string,var1,var2) \
  28. if( ElfDebugLevel & (DEBUG_ ## level)){ \
  29. DbgPrint("[ELF] %lx: " string,GetCurrentThreadId(),var1,var2); \
  30. }
  31. #define ELF_LOG3(level,string,var1,var2,var3) \
  32. if( ElfDebugLevel & (DEBUG_ ## level)){ \
  33. DbgPrint("[ELF] %lx: " string,GetCurrentThreadId(),var1,var2,var3); \
  34. }
  35. #define ELF_LOG4(level,string,var1,var2,var3,var4) \
  36. if( ElfDebugLevel & (DEBUG_ ## level)){ \
  37. DbgPrint("[ELF] %lx: " string,GetCurrentThreadId(),var1,var2,var3); \
  38. }
  39. #else
  40. #define ELF_LOG0(level,string)
  41. #define ELF_LOG1(level,string,var)
  42. #define ELF_LOG2(level,string,var1,var2)
  43. #define ELF_LOG3(level,string,var1,var2,var3)
  44. #define ELF_LOG4(level,string,var1,var2,var3,var4)
  45. #endif // DBG
  46. #define DEBUG_NONE 0x00000000
  47. #define DEBUG_ERROR 0x00000001
  48. #define DEBUG_TRACE 0x00000002
  49. #define DEBUG_MODULES 0x00000004
  50. #define DEBUG_CLUSTER 0x00000008
  51. #define DEBUG_LPC 0x00000010
  52. #define DEBUG_HANDLE 0x00000020
  53. #define DEBUG_FILES 0x00000040
  54. #define DEBUG_ALL 0xffffffff
  55. #endif // _ELFDBG_H