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.

70 lines
901 B

  1. /*++
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. debug.c
  5. Abstract:
  6. This module provides debugging support.
  7. Author:
  8. Neil Sandlin (neilsa) 26-Apr-99
  9. Revision History:
  10. --*/
  11. #include "pch.h"
  12. #if DBG
  13. ULONG MemCardDebugLevel = 1;
  14. VOID
  15. MemCardDebugPrint(
  16. ULONG DebugMask,
  17. PCCHAR DebugMessage,
  18. ...
  19. )
  20. /*++
  21. Routine Description:
  22. Debug print for the PCMCIA enabler.
  23. Arguments:
  24. Check the mask value to see if the debug message is requested.
  25. Return Value:
  26. None
  27. --*/
  28. {
  29. va_list ap;
  30. char buffer[256];
  31. va_start(ap, DebugMessage);
  32. if (DebugMask & MemCardDebugLevel) {
  33. vsprintf(buffer, DebugMessage, ap);
  34. DbgPrint(buffer);
  35. }
  36. va_end(ap);
  37. } // end MemcardDebugPrint()
  38. #endif