Windows NT 4.0 source code leak
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.

42 lines
911 B

4 years ago
  1. /*
  2. * DISP.H - debug display macro's under NDIS
  3. */
  4. #ifndef _DISP_
  5. #define _DISP_
  6. #if DBG
  7. #define DISP_DEBUG 1
  8. #endif
  9. #ifdef DISP_DEBUG
  10. /* main macro to be used for logging */
  11. #define D_LOG(level, args) \
  12. { \
  13. if ( d_log_on(__FILE__, __LINE__, level) ) \
  14. d_log_out args; \
  15. }
  16. #else
  17. #define D_LOG(level, args)
  18. #endif
  19. /* prototypes */
  20. VOID d_log_init(VOID);
  21. VOID d_log_term(VOID);
  22. INT d_log_on(CHAR* file, INT line, INT level);
  23. VOID d_log_out(CHAR* fmt, ...);
  24. VOID SetDebugLevel (VOID *);
  25. VOID InternalSetDebugLevel (INT);
  26. /* log levels */
  27. #define D_ALWAYS 0
  28. #define D_ENTRY 5
  29. #define D_EXIT 6
  30. #define D_RARE 51
  31. #define D_NEVER 101
  32. #endif /* _DISP_ */