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: kpdebug.cxx
  8. //
  9. // Contents: debugging routines
  10. //
  11. // History: 10-Jul-2001 t-ryanj Created
  12. //
  13. //------------------------------------------------------------------------
  14. #include "kpdebug.h"
  15. #ifdef DBG
  16. DEBUG_KEY KerbProxyDebugKeys[] = { { DEB_ERROR, "Error" },
  17. { DEB_WARN, "Warn" },
  18. { DEB_TRACE, "Trace" },
  19. { DEB_PEDANTIC, "Pedantic" },
  20. { 0, NULL } };
  21. DEFINE_DEBUG2(KerbProxy);
  22. //+-------------------------------------------------------------------------
  23. //
  24. // Function: KpInitDebug
  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. KpInitDebug(
  43. VOID
  44. )
  45. {
  46. //
  47. // Set the default debug level.
  48. // TODO: Eventually, this should be read from the registry somewhere.
  49. //
  50. KerbProxyInitDebug( KerbProxyDebugKeys );
  51. KerbProxyInfoLevel = DEB_TRACE | DEB_ERROR | DEB_WARN;
  52. }
  53. #endif // DBG