improved debug outputs

This commit is contained in:
bjt-user 2024-05-05 09:08:12 +02:00
parent 8f54b4d4bf
commit d4c590f2ec

View File

@ -84,7 +84,7 @@ func print_children(heading *heading, headings []heading) {
func print_children_recursive(heading *heading, headings []heading) {
for index, _ := range headings {
if headings[index].parent == heading {
fmt.Printf("Child of parent %p: %s\n", heading, headings[index].text)
fmt.Printf("Child of parent %p: %s (%p)\n", heading, headings[index].text, &headings[index])
print_children_recursive(&headings[index], headings)
}
}