1
0
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:
Joe Thornber 2018-09-20 14:18:57 +01:00
parent abe2210c26
commit 0ac7913c6a

View File

@ -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: