log-tree.c: Use struct name_decoration's type for classifying decoration