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.

52 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1994-2000 Microsoft Corporation
  3. Module Name: debug.c
  4. Abstract: Debug functions
  5. Author: Richard L Firth (rfirth) 20-May-1994
  6. Revision History:
  7. 20-May-1994 rfirth Created
  8. 30-Apr-97 MoshinA Fixing for NT50.
  9. --*/
  10. #include "precomp.h"
  11. #pragma hdrstop
  12. #if defined(DEBUG)
  13. const char* if_type$(ulong type)
  14. {
  15. switch (type) {
  16. case IF_TYPE_OTHER: return "other";
  17. case IF_TYPE_ETHERNET_CSMACD: return "ethernet";
  18. case IF_TYPE_ISO88025_TOKENRING: return "token ring";
  19. case IF_TYPE_FDDI: return "FDDI";
  20. case IF_TYPE_PPP: return "PPP";
  21. case IF_TYPE_SOFTWARE_LOOPBACK: return "loopback";
  22. case IF_TYPE_SLIP: return "SLIP";
  23. }
  24. return "???";
  25. }
  26. const char* entity$(ulong entity)
  27. {
  28. switch (entity) {
  29. case CO_TL_ENTITY: return "CO_TL_ENTITY";
  30. case CL_TL_ENTITY: return "CL_TL_ENTITY";
  31. case ER_ENTITY: return "ER_ENTITY";
  32. case CO_NL_ENTITY: return "CO_NL_ENTITY";
  33. case CL_NL_ENTITY: return "CL_NL_ENTITY";
  34. case AT_ENTITY: return "AT_ENTITY";
  35. case IF_ENTITY: return "IF_ENTITY";
  36. }
  37. return "*** UNKNOWN ENTITY ***";
  38. }
  39. #endif