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.

63 lines
853 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. print.c
  5. Abstract:
  6. This modules implements debug prints.
  7. Author:
  8. David N. Cutler (davec) 30-Nov-96
  9. Revision History:
  10. --*/
  11. #include "bd.h"
  12. VOID
  13. BdPrintf(
  14. IN PCHAR Format,
  15. ...
  16. )
  17. /*++
  18. Routine Description:
  19. Printf routine for the debugger that is safer than DbgPrint. Calls
  20. the packet driver instead of reentering the debugger.
  21. Arguments:
  22. Format - Supplies a pointer to a format string.
  23. Return Value:
  24. None
  25. --*/
  26. {
  27. CHAR Buffer[100];
  28. va_list mark;
  29. STRING String;
  30. va_start(mark, Format);
  31. _vsnprintf(&Buffer[0], 100, Format, mark);
  32. va_end(mark);
  33. //bugbug UNICODE
  34. //BlPrint("%s", &Buffer[0]);
  35. String.Buffer = &Buffer[0];
  36. String.Length = strlen(&Buffer[0]);
  37. BdPrintString(&String);
  38. return;
  39. }