1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-03 08:07:17 -05:00

Redo the assertm() message to just show the type of the node and parent

This commit is contained in:
Jonas Fonseca 2005-12-13 20:08:58 +01:00 committed by Jonas Fonseca
parent 2eebef098d
commit 5ef041c051

View File

@ -236,9 +236,8 @@ init_dom_node_(unsigned char *file, int line,
int sort = (type == DOM_NODE_ATTRIBUTE); int sort = (type == DOM_NODE_ATTRIBUTE);
int index; int index;
assertm(list, "Adding node to bad parent", assertm(list, "Adding node %d to bad parent %d",
get_dom_node_type_name(node->type), node->type, parent->type);
get_dom_node_type_name(parent->type));
index = *list && (*list)->size > 0 && sort index = *list && (*list)->size > 0 && sort
? get_dom_node_map_index(*list, node) : -1; ? get_dom_node_map_index(*list, node) : -1;