config_dump.c 676 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifdef DEBUG
  2. /*
  3. * config_dump.c
  4. */
  5. #include "lub/dump.h"
  6. #include "private.h"
  7. /*--------------------------------------------------------- */
  8. void clish_config_dump(const clish_config_t *this)
  9. {
  10. char *op;
  11. lub_dump_printf("config(%p)\n", this);
  12. lub_dump_indent();
  13. switch (this->op) {
  14. case CLISH_CONFIG_NONE:
  15. op = "NONE";
  16. break;
  17. case CLISH_CONFIG_SET:
  18. op = "SET";
  19. break;
  20. case CLISH_CONFIG_UNSET:
  21. op = "UNSET";
  22. break;
  23. case CLISH_CONFIG_DUMP:
  24. op = "DUMP";
  25. break;
  26. default:
  27. op = "Unknown";
  28. break;
  29. }
  30. lub_dump_printf("op : %s\n", op);
  31. lub_dump_undent();
  32. }
  33. /*--------------------------------------------------------- */
  34. #endif /* DEBUG */