better dump of param tree from debugger

This commit is contained in:
Stanislav Shwartsman 2018-01-10 20:21:24 +00:00
parent 5f2bf81995
commit a22c6a292a

View File

@ -210,15 +210,15 @@ void print_tree(bx_param_c *node, int level, bx_bool xml)
break;
case BXT_LIST:
{
if (!xml) dbg_printf("{");
dbg_printf("\n");
bx_list_c *list = (bx_list_c*)node;
for (i=0; i < list->get_size(); i++) {
print_tree(list->get(i), level+1, xml);
}
if (xml) {
for (i=0; i<level; i++)
dbg_printf(" ");
}
for (i=0; i<level; i++)
dbg_printf(" ");
if (!xml) dbg_printf("}");
break;
}
case BXT_PARAM_DATA: