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.

69 lines
811 B

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. debug.c
  5. Abstract:
  6. Contains debug functions.
  7. Author:
  8. Madan Appiah (madana) 15-Nov-1994
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #if DBG
  14. #include <windows.h>
  15. #include <winnt.h>
  16. #include <stdlib.h>
  17. #include <stdio.h>
  18. #include <debug.h>
  19. VOID
  20. InternetDebugPrintValist(
  21. IN LPSTR Format,
  22. va_list list
  23. );
  24. extern BOOL UrlcacheDebugEnabled;
  25. VOID
  26. TcpsvcsDbgPrintRoutine(
  27. IN DWORD DebugFlag,
  28. IN LPSTR Format,
  29. ...
  30. )
  31. {
  32. va_list arglist;
  33. if (!UrlcacheDebugEnabled) {
  34. return;
  35. }
  36. va_start(arglist, Format);
  37. InternetDebugPrintValist(Format, arglist);
  38. va_end(arglist);
  39. }
  40. #endif // DBG