mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
[radix-tree] Fix bug in _dump
Values in an n48 were not being printed in the correct order.
This commit is contained in:
parent
abe2210c26
commit
0ac7913c6a
@ -1260,9 +1260,10 @@ static void _dump(FILE *out, struct value v, unsigned indent)
|
||||
fprintf(out, "%x ", i);
|
||||
fprintf(out, ">\n");
|
||||
|
||||
for (i = 0; i < 256; i++)
|
||||
if (n48->keys[i] < 48)
|
||||
_dump(out, n48->values[i], indent + 1);
|
||||
for (i = 0; i < n48->nr_entries; i++) {
|
||||
assert(n48->values[i].type != UNSET);
|
||||
_dump(out, n48->values[i], indent + 1);
|
||||
}
|
||||
break;
|
||||
|
||||
case NODE256:
|
||||
|
Loading…
Reference in New Issue
Block a user