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.

68 lines
1.4 KiB

  1. /***************************************************************************
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. USBDBG.H
  5. Abstract:
  6. Debugging aids for USB wrapper
  7. Environment:
  8. Kernel and User Mode
  9. Notes:
  10. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  11. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  12. IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  13. PURPOSE.
  14. Copyright (c) 2001 Microsoft Corporation. All Rights Reserved.
  15. Revision History:
  16. 01/08/2001 : created
  17. Authors:
  18. Tom Green
  19. ****************************************************************************/
  20. #ifndef __USBDBG_H__
  21. #define __USBDBG_H__
  22. #if DBG
  23. #define DBGPRINT(level, _x_) \
  24. { \
  25. if(level & USBUtil_DebugTraceLevel) \
  26. { \
  27. USBUtil_DbgPrint("USBWrap: "); \
  28. USBUtil_DbgPrint _x_ ; \
  29. } \
  30. }
  31. #else
  32. #define DBGPRINT(level, _x_)
  33. #endif // DBG
  34. #define ALLOC_MEM(type, amount, tag) ExAllocatePoolWithTag(type, amount, tag)
  35. #define FREE_MEM(memPtr) ExFreePool(memPtr)
  36. #endif // __USBDBG_H__