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.

66 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. :ts=4
  4. Module Name:
  5. log.h
  6. Abstract:
  7. debug macros
  8. Environment:
  9. Kernel & user mode
  10. Revision History:
  11. 10-27-95 : created
  12. --*/
  13. #ifndef __LOG_H__
  14. #define __LOG_H__
  15. //---------------------------
  16. #define ZSIG_SET_DTR 0x02000000 // STX
  17. #define ZSIG_CLR_DTR 0x03000000 // ETX
  18. //---------------------------
  19. #define LOG_MISC 0x00000001 //debug log entries
  20. #define LOG_CNT 0x00000002
  21. //
  22. // Assert Macros
  23. //
  24. #if DBG
  25. ULONG
  26. CyyDbgPrintEx(IN ULONG Level, PCHAR Format, ...);
  27. #define LOGENTRY(mask, sig, info1, info2, info3) \
  28. SerialDebugLogEntry(mask, sig, (ULONG_PTR)info1, \
  29. (ULONG_PTR)info2, \
  30. (ULONG_PTR)info3)
  31. VOID
  32. SerialDebugLogEntry(IN ULONG Mask, IN ULONG Sig, IN ULONG_PTR Info1,
  33. IN ULONG_PTR Info2, IN ULONG_PTR Info3);
  34. VOID
  35. SerialLogInit();
  36. VOID
  37. SerialLogFree();
  38. #else
  39. #define LOGENTRY(mask, sig, info1, info2, info3)
  40. __inline ULONG CyyDbgPrintEx(IN ULONG Level, PCHAR Format, ...) { return 0; }
  41. #endif
  42. #endif // __LOG_H__