]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print out indexes, which can help at times.
authorAlan T. DeKok <aland@freeradius.org>
Mon, 23 May 2022 19:21:46 +0000 (15:21 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 24 May 2022 20:46:46 +0000 (16:46 -0400)
src/lib/unlang/xlat_tokenize.c

index c703fa630707ab27fd14943775e8890cd28f7c73..c7442b86914c818406cb72e7efb9228f4038de3a 100644 (file)
@@ -992,12 +992,14 @@ static size_t xlat_quote_table_len = NUM_ELEMENTS(xlat_quote_table);
 
 static void _xlat_debug(xlat_exp_head_t const *head, int depth)
 {
+       int i = 0;
+
 #define INFO_INDENT(_fmt, ...)  INFO("%*s"_fmt, depth * 2, " ", ## __VA_ARGS__)
 
        fr_assert(head != NULL);
 
        xlat_exp_foreach(head, node) {
-               INFO_INDENT("flags = { %s %s %s %s }",
+               INFO_INDENT("[%d] flags = { %s %s %s %s }", i++,
                            node->flags.needs_resolving ? "need_resolving" : "",
                            node->flags.needs_async ? "need_async" : "",
                            node->flags.pure ? "pure" : "",