fixed print list

This commit is contained in:
Jonathan Turner 2023-11-29 18:31:44 -05:00
parent 1e727daa2d
commit 6632d3a2ab

View File

@ -170,8 +170,7 @@ void print_holes(node* umem_head) {
u32 total = umem_head->base_register+umem_head->limit_register;
hole = add_node( hole, total, next->base_register-total, true, ++hole_ids);
} else {
node *previous = umem_head->previous;
hole = add_node( hole, previous->base_register+previous->limit_register, -1, true, ++hole_ids);
hole = add_node( hole, umem_head->base_register+umem_head->limit_register, -1, true, ++hole_ids);
}
umem_head = umem_head->next;
}