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.

92 lines
1.5 KiB

  1. //===========================================================================
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1996 - 1998 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //===========================================================================
  11. /*++
  12. Module Name:
  13. dbg.h
  14. Abstract:
  15. Debug Code for 1394 drivers.
  16. Environment:
  17. kernel mode only
  18. Notes:
  19. Revision History:
  20. 5-Sep-95
  21. --*/
  22. //
  23. // Various definitions
  24. //
  25. #if DBG
  26. ULONG DCamDebugLevel;
  27. #define ERROR_LOG(_x_) KdPrint(_x_);
  28. // Critical
  29. #define DbgMsg1(_x_) {if (DCamDebugLevel >= 1) \
  30. KdPrint (_x_);}
  31. // Warning/trace
  32. #define DbgMsg2(_x_) {if (DCamDebugLevel >= 2) \
  33. KdPrint (_x_);}
  34. // Information
  35. #define DbgMsg3(_x_) {if (DCamDebugLevel >= 3) \
  36. KdPrint (_x_);}
  37. #else
  38. #define ERROR_LOG(_x_)
  39. #define DbgMsg1(_x_)
  40. #define DbgMsg2(_x_)
  41. #define DbgMsg3(_x_)
  42. #endif
  43. //
  44. // Function declarations
  45. //
  46. VOID
  47. Debug_Assert(
  48. IN PVOID FailedAssertion,
  49. IN PVOID FileName,
  50. IN ULONG LineNumber,
  51. IN PCHAR Message
  52. );
  53. VOID
  54. Debug_LogEntry(
  55. IN CHAR *Name,
  56. IN ULONG Info1,
  57. IN ULONG Info2,
  58. IN ULONG Info3
  59. );
  60. VOID
  61. Debug_LogInit(
  62. );