Commit d388e37e authored by Geoff Simmons's avatar Geoff Simmons

Add some more info to the debugging dump.

parent 35d24473
......@@ -353,10 +353,14 @@ pt_print_tree(struct pt_y *y, struct vsb *sb, char **strings)
VSB_printf(sb, "leaf[0] = %p\n", y->leaf[0]);
VSB_printf(sb, "leaf[1] = %p\n", y->leaf[1]);
VSB_printf(sb, "idx = %u\n", y->idx);
if (strings[y->idx] != NULL)
VSB_printf(sb, "strings[idx] = %s\n", strings[y->idx]);
VSB_printf(sb, "off = %u\n", y->off);
VSB_printf(sb, "len = %u\n", y->len);
AN(strings[y->idx]);
VSB_printf(sb, "strings[idx] = %s\n", strings[y->idx]);
VSB_printf(sb, "strings[idx][0]..[off] = %.*s\n", y->off,
strings[y->idx]);
VSB_printf(sb, "strings[idx][off]..[off+len] = %.*s\n", y->len,
strings[y->idx] + y->off);
VSB_printf(sb, "bitmask = 0x%02x\n\n", y->bitmask);
if (y->leaf[0] != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment