]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
slight tweak to debugging message
authorAlan T. DeKok <aland@freeradius.org>
Tue, 7 Jun 2022 20:48:11 +0000 (16:48 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 17 Jun 2022 12:28:41 +0000 (08:28 -0400)
src/lib/unlang/xlat_eval.c

index 8c0f97b4334318ef431eed45b2772a1eef06b9a4..36477d1c642d4335e079c97a98d1238cde88a29b 100644 (file)
@@ -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;