Changeset 4a23cb6 in mainline
- Timestamp:
- 2008-06-17T21:32:04Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a3124c
- Parents:
- 9f491d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/avltree/avltree1.c
r9f491d7 r4a23cb6 49 49 static int test_tree_balance(avltree_node_t *node); 50 50 static avltree_node_t *test_tree_parents(avltree_node_t *node); 51 static void print_tree_structure_flat (avltree_node_t *node, int level); 51 static void print_tree_structure_flat (avltree_node_t *node, int level) 52 __attribute__ ((used)); 52 53 static avltree_node_t *alloc_avltree_node(void); 53 54 … … 62 63 tmp = test_tree_parents(node->lft); 63 64 if (tmp != node) { 64 printf("Bad parent pointer key: %" PRIu64 ", address: %p\n",65 tmp->key, node->lft);65 printf("Bad parent pointer key: %" PRIu64 66 ", address: %p\n", tmp->key, node->lft); 66 67 } 67 68 } … … 69 70 tmp = test_tree_parents(node->rgt); 70 71 if (tmp != node) { 71 printf("Bad parent pointer key: %" PRIu64 ", address: %p\n", 72 printf("Bad parent pointer key: %" PRIu64 73 ", address: %p\n", 72 74 tmp->key,node->rgt); 73 75 } … … 95 97 * tree. 96 98 */ 97 static void print_tree_structure_flat(avltree_node_t *node, int level) 99 static void 100 print_tree_structure_flat(avltree_node_t *node, int level) 98 101 { 99 102 /* … … 131 134 avltree_nodes[i].par = &avltree_nodes[i + 1]; 132 135 } 136 avltree_nodes[i].par = NULL; 133 137 134 138 /* … … 170 174 avltree_nodes[i].key = i * 3; 171 175 172 avltree_nodes[i].par = NULL;173 176 first_free_node = &avltree_nodes[0]; 174 177 }
Note:
See TracChangeset
for help on using the changeset viewer.