|
@@ -14,12 +14,11 @@ void clish_param_dump(const clish_param_t * this)
|
|
|
lub_dump_printf("param(%p)\n", this);
|
|
|
|
|
|
lub_dump_indent();
|
|
|
- lub_dump_printf("name : %s\n", this->name);
|
|
|
- lub_dump_printf("text : %s\n", this->text);
|
|
|
- lub_dump_printf("value : %s\n", this->value);
|
|
|
+ lub_dump_printf("name : %s\n", LUB_DUMP_STR(this->name));
|
|
|
+ lub_dump_printf("text : %s\n", LUB_DUMP_STR(this->text));
|
|
|
+ lub_dump_printf("value : %s\n", LUB_DUMP_STR(this->value));
|
|
|
lub_dump_printf("ptype : %s\n", clish_ptype__get_name(this->ptype));
|
|
|
- lub_dump_printf("default : %s\n",
|
|
|
- this->defval ? this->defval : "(null)");
|
|
|
+ lub_dump_printf("default : %s\n", LUB_DUMP_STR(this->defval));
|
|
|
switch (this->mode) {
|
|
|
case CLISH_PARAM_COMMON:
|
|
|
mode = "COMMON";
|
|
@@ -36,12 +35,10 @@ void clish_param_dump(const clish_param_t * this)
|
|
|
}
|
|
|
lub_dump_printf("mode : %s\n", mode);
|
|
|
lub_dump_printf("paramc : %d\n", clish_paramv__get_count(this->paramv));
|
|
|
- lub_dump_printf("optional : %s\n",
|
|
|
- this->optional ? "true" : "false");
|
|
|
- lub_dump_printf("hidden : %s\n",
|
|
|
- this->hidden ? "true" : "false");
|
|
|
- lub_dump_printf("test : %s\n", this->test);
|
|
|
- lub_dump_printf("completion : %s\n", this->completion);
|
|
|
+ lub_dump_printf("optional : %s\n", LUB_DUMP_BOOL(this->optional));
|
|
|
+ lub_dump_printf("hidden : %s\n", LUB_DUMP_BOOL(this->hidden));
|
|
|
+ lub_dump_printf("test : %s\n", LUB_DUMP_STR(this->test));
|
|
|
+ lub_dump_printf("completion : %s\n", LUB_DUMP_STR(this->completion));
|
|
|
|
|
|
/* Get each parameter to dump their details */
|
|
|
for (i = 0; i < clish_paramv__get_count(this->paramv); i++) {
|