From: Alan T. DeKok Date: Mon, 23 May 2022 19:21:46 +0000 (-0400) Subject: print out indexes, which can help at times. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07eac01ec521762c4864b49b7dee8659218b649c;p=thirdparty%2Ffreeradius-server.git print out indexes, which can help at times. --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index c703fa63070..c7442b86914 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -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" : "",