]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print the tainted flag, and do better indentation
authorAlan T. DeKok <aland@freeradius.org>
Mon, 22 Aug 2022 21:59:06 +0000 (17:59 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 23 Aug 2022 03:01:02 +0000 (23:01 -0400)
src/lib/unlang/xlat_builtin.c

index 08089475894b0483273198c08fce0b553ce664fb..fe85f9994a1ad3f8e12d0bdff81438a28a9e4d81 100644 (file)
@@ -1015,6 +1015,7 @@ void xlat_debug_attr_vp(request_t *request, fr_pair_t *vp, tmpl_t const *vpt)
 
        if (!RDEBUG_ENABLED3) return;
 
+       RINDENT();
        RIDEBUG3("da         : %p", vp->da);
        RIDEBUG3("is_raw     : %pV", fr_box_bool(vp->da->flags.is_raw));
        RIDEBUG3("is_unknown : %pV", fr_box_bool(vp->da->flags.is_unknown));
@@ -1032,8 +1033,12 @@ void xlat_debug_attr_vp(request_t *request, fr_pair_t *vp, tmpl_t const *vpt)
        if (fr_box_is_variable_size(&vp->data)) {
                RIDEBUG3("length     : %zu", vp->vp_length);
        }
+       RIDEBUG3("tainted    : %pV", fr_box_bool(vp->data.tainted));
 
-       if (!RDEBUG_ENABLED4) return;
+       if (!RDEBUG_ENABLED4) {
+               REXDENT();
+               return;
+       }
 
        for (i = 0; i < fr_type_table_len; i++) {
                int pad;
@@ -1067,6 +1072,8 @@ void xlat_debug_attr_vp(request_t *request, fr_pair_t *vp, tmpl_t const *vpt)
        next_type:
                talloc_free(dst);
        }
+
+       REXDENT();
 }
 
 void xlat_debug_attr_list(request_t *request, fr_pair_list_t const *list)