From: Alan T. DeKok Date: Sun, 1 Sep 2024 14:47:26 +0000 (-0400) Subject: only print out top-level list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e780fe6b48f9517c0691e1dfc0520ec57a247f2d;p=thirdparty%2Ffreeradius-server.git only print out top-level list so we don't print the inner-most things repeatedly --- diff --git a/src/lib/unlang/edit.c b/src/lib/unlang/edit.c index d82ad41f0c..9e5f754351 100644 --- a/src/lib/unlang/edit.c +++ b/src/lib/unlang/edit.c @@ -457,13 +457,15 @@ apply_list: /* * Print the children before we do the modifications. */ - RDEBUG2("%s %s {", current->lhs.vpt->name, fr_tokens[map->op]); - if (fr_debug_lvl >= L_DBG_LVL_2) { - RINDENT(); - edit_debug_attr_list(request, children, map); - REXDENT(); + if (!current->parent) { + RDEBUG2("%s %s {", current->lhs.vpt->name, fr_tokens[map->op]); + if (fr_debug_lvl >= L_DBG_LVL_2) { + RINDENT(); + edit_debug_attr_list(request, children, map); + REXDENT(); + } + RDEBUG2("}"); } - RDEBUG2("}"); fr_pair_list_foreach(children, child) { if (!fr_dict_attr_can_contain(current->lhs.vp->da, child->da)) {