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.

79 lines
940 B

  1. /*++
  2. Copyright (c) 1999, 2000 Microsoft Corporation
  3. Module Name:
  4. dbg.c
  5. Abstract:
  6. Debug only functions
  7. Environment:
  8. kernel mode only
  9. Notes:
  10. Revision History:
  11. 1-1-00 : created
  12. --*/
  13. #include "common.h"
  14. // paged functions
  15. #ifdef ALLOC_PRAGMA
  16. #endif
  17. // non paged functions
  18. //EHCI_KdPrintX
  19. #if DBG
  20. ULONG
  21. _cdecl
  22. EHCI_KdPrintX(
  23. PVOID DeviceData,
  24. ULONG Level,
  25. PCH Format,
  26. ...
  27. )
  28. /*++
  29. Routine Description:
  30. Debug Print function.
  31. calls the port driver print function
  32. Arguments:
  33. Return Value:
  34. --*/
  35. {
  36. va_list list;
  37. int i;
  38. int arg[6];
  39. va_start(list, Format);
  40. for (i=0; i<6; i++) {
  41. arg[i] = va_arg(list, int);
  42. }
  43. USBPORT_DBGPRINT(
  44. DeviceData, Level, Format, arg[0], arg[1], arg[2], arg[3], arg[4], arg[5]);
  45. return 0;
  46. }
  47. #endif