fixed print list
This commit is contained in:
parent
935a8914f0
commit
1e727daa2d
@ -167,7 +167,8 @@ void print_holes(node* umem_head) {
|
|||||||
while(umem_head != NULL) {
|
while(umem_head != NULL) {
|
||||||
if (umem_head->next != NULL) {
|
if (umem_head->next != NULL) {
|
||||||
node *next = umem_head->next;
|
node *next = umem_head->next;
|
||||||
hole = add_node( hole, umem_head->base_register+umem_head->limit_register, next->base_register, true, ++hole_ids);
|
u32 total = umem_head->base_register+umem_head->limit_register;
|
||||||
|
hole = add_node( hole, total, next->base_register-total, true, ++hole_ids);
|
||||||
} else {
|
} else {
|
||||||
node *previous = umem_head->previous;
|
node *previous = umem_head->previous;
|
||||||
hole = add_node( hole, previous->base_register+previous->limit_register, -1, true, ++hole_ids);
|
hole = add_node( hole, previous->base_register+previous->limit_register, -1, true, ++hole_ids);
|
||||||
|
Reference in New Issue
Block a user