if (node->child[i]->parent != node) {
printf("%s:%d Fatal! Tree inconsistency detected "
"at child %d in node %p\n",
- __FUNCTION__, __LINE__, i, node);
+ __func__, __LINE__, i, node);
trap();
}
if (node->parent) {
if (node->child[i] == node->parent) {
- printf("%s:%d Fatal! Tree loop detected "
- "at child %d in node %p\n",
- __FUNCTION__, __LINE__, i, node);
- trap();
+ printf("%s:%d Fatal! Tree loop detected "
+ "at child %d in node %p\n",
+ __func__, __LINE__, i, node);
+ trap();
}
}
}
if (i == 4) {
printf("%s:%d Fatal! Tree inconsistency detected\n",
- __FUNCTION__, __LINE__);
+ __func__, __LINE__);
trap();
}