]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clean up printing for regexes
authorAlan T. DeKok <aland@freeradius.org>
Thu, 12 Mar 2026 18:57:26 +0000 (14:57 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 12 Mar 2026 19:11:00 +0000 (15:11 -0400)
src/lib/unlang/xlat_eval.c

index 959da4126bbaf26905cc323d62ecc44203c769d1..40faab4ce60c01c5adfa59d8709fbe519905ff46 100644 (file)
@@ -240,20 +240,16 @@ static inline void xlat_debug_log_expansion(request_t *request, xlat_exp_t const
 
                        a = fr_value_box_list_head(args);
                        if (!a) return;
-
                        b = fr_value_box_list_next(args, a);
 
-                       if (!b) {
-                               RDEBUG2("| ... ??? %pR", a);
-
-                       } else {
+                       if (b) {
                                RDEBUG2("| (%pR %s %pR)", a, fr_tokens[node->call.func->token], b);
-
-                               a = fr_value_box_list_next(args, b);
-                               if (a) {
-                                       RDEBUG2("| ... ??? %pR", a);
-                                       fr_assert(0);
-                               }
+                       } else {
+                               /*
+                                *      @todo - things like regexes "steal" their arguments.  we should really
+                                *      have a way to print those arguments here.
+                                */
+                               RDEBUG2("| (%pR %s ...)", a, fr_tokens[node->call.func->token]);
                        }
                }
        } else {