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.

36 lines
761 B

  1. /****************************************************************************
  2. *
  3. * Copyright (c)1997-1999 Microsoft Corporation, All Rights Reserved
  4. *
  5. *
  6. *
  7. *
  8. *
  9. *
  10. *
  11. ****************************************************************************/
  12. #include "stdafx.h"
  13. #include "trace.h"
  14. #ifdef _DEBUG
  15. void __cdecl Trace(LPSTR lprgchFormat, ...)
  16. {
  17. char rgch[128], rgchOutput[256];
  18. wsprintfA(rgch, "%s\n", lprgchFormat);
  19. #if defined(_M_IX86)
  20. wvsprintfA(rgchOutput, rgch, (LPSTR)(((LPSTR)&lprgchFormat) + sizeof(LPSTR)));
  21. #else
  22. {
  23. va_list lpArgs;
  24. va_start(lpArgs, lprgchFormat);
  25. wvsprintfA(rgchOutput, rgch, lpArgs);
  26. va_end(lpArgs);
  27. }
  28. #endif
  29. OutputDebugStringA(rgchOutput);
  30. }
  31. #endif //_DEBUG