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.

72 lines
939 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 SffDiskDebugLevel = SFFDISKFAIL | SFFDISKWARN;
  14. // SFFDISKINFO | SFFDISKSHOW;
  15. // SFFDISKIOCTL;
  16. VOID
  17. SffDiskDebugPrint(
  18. ULONG DebugMask,
  19. PCCHAR DebugMessage,
  20. ...
  21. )
  22. /*++
  23. Routine Description:
  24. Debug print for SFFDISK.
  25. Arguments:
  26. Check the mask value to see if the debug message is requested.
  27. Return Value:
  28. None
  29. --*/
  30. {
  31. va_list ap;
  32. char buffer[256];
  33. va_start(ap, DebugMessage);
  34. if (DebugMask & SffDiskDebugLevel) {
  35. vsprintf(buffer, DebugMessage, ap);
  36. DbgPrint(buffer);
  37. }
  38. va_end(ap);
  39. }
  40. #endif