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.

60 lines
1.3 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation
  6. //
  7. // File: ktdebug.cxx
  8. //
  9. // Contents: Kerberos Tunneller, debugging routines
  10. //
  11. // History: 28-Jun-2001 t-ryanj Created
  12. //
  13. //------------------------------------------------------------------------
  14. #include "ktdebug.h"
  15. #if DBG
  16. DEBUG_KEY KtunnelDebugKeys[] = { { DEB_ERROR, "Error" },
  17. { DEB_WARN, "Warn" },
  18. { DEB_TRACE, "Trace" },
  19. { DEB_PEDANTIC, "Pedantic" },
  20. { 0, NULL } };
  21. DEFINE_DEBUG2(Ktunnel);
  22. //+-------------------------------------------------------------------------
  23. //
  24. // Function: KtInitDebug
  25. //
  26. // Synopsis: Initializes debugging resources and sets the default debug
  27. // level.
  28. //
  29. // Effects:
  30. //
  31. // Arguments:
  32. //
  33. // Requires:
  34. //
  35. // Returns:
  36. //
  37. // Notes:
  38. //
  39. //
  40. //--------------------------------------------------------------------------
  41. VOID
  42. KtInitDebug(
  43. VOID
  44. )
  45. {
  46. //
  47. // Set the default debug level.
  48. // TODO: Eventually, this should be read from the registry somewhere.
  49. //
  50. KtunnelInitDebug( KtunnelDebugKeys );
  51. KtunnelInfoLevel = DEB_TRACE | DEB_ERROR | DEB_WARN;
  52. }
  53. #endif // DBG