From: Alan T. DeKok Date: Tue, 7 Jun 2022 20:48:11 +0000 (-0400) Subject: slight tweak to debugging message X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cd3aa9a07c847b9308b0967735548d7dc501949;p=thirdparty%2Ffreeradius-server.git slight tweak to debugging message --- diff --git a/src/lib/unlang/xlat_eval.c b/src/lib/unlang/xlat_eval.c index 8c0f97b4334..36477d1c642 100644 --- a/src/lib/unlang/xlat_eval.c +++ b/src/lib/unlang/xlat_eval.c @@ -902,7 +902,6 @@ xlat_eval_pair_real(TALLOC_CTX *ctx, fr_value_box_list_t *out, request_t *reques goto done; } - switch (tmpl_num(vpt)) { /* * Return a count of the VPs. @@ -1333,8 +1332,13 @@ xlat_action_t xlat_frame_eval(TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_exp_head_ fr_dlist_insert_tail(&result, value); } else if (tmpl_is_attr(node->vpt) || tmpl_is_list(node->vpt)) { - XLAT_DEBUG("** [%i] %s(attribute) - %%{%s}", unlang_interpret_stack_depth(request), __FUNCTION__, - node->fmt); + if (node->fmt[0] == '&') { + XLAT_DEBUG("** [%i] %s(attribute) - %s", unlang_interpret_stack_depth(request), __FUNCTION__, + node->fmt); + } else { + XLAT_DEBUG("** [%i] %s(attribute) - %%{%s}", unlang_interpret_stack_depth(request), __FUNCTION__, + node->fmt); + } xlat_debug_log_expansion(request, node, NULL); if (xlat_eval_pair_real(ctx, &result, request, node->vpt) == XLAT_ACTION_FAIL) goto fail;