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.

68 lines
781 B

  1. /*++
  2. Copyright (c) 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. 10-31-00 : created
  12. --*/
  13. #include "stdarg.h"
  14. #include "stdio.h"
  15. #include "common.h"
  16. #if DBG
  17. ULONG
  18. _cdecl
  19. USB2LIB_KdPrintX(
  20. PCH Format,
  21. ...
  22. )
  23. /*++
  24. Routine Description:
  25. Debug Print function.
  26. calls the port driver print function
  27. Arguments:
  28. Return Value:
  29. --*/
  30. {
  31. va_list list;
  32. int i;
  33. int arg[6];
  34. LibData.DbgPrint("'USB2LIB: ", 0, 0, 0, 0, 0, 0);
  35. va_start(list, Format);
  36. for (i=0; i<6; i++)
  37. arg[i] = va_arg(list, int);
  38. LibData.DbgPrint(Format, arg[0], arg[1], arg[2], arg[3], arg[4], arg[5]);
  39. return 0;
  40. }
  41. #endif