From: Alan T. DeKok Date: Tue, 20 Sep 2022 16:11:53 +0000 (-0400) Subject: add file / line for indent debugging X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b7ebfe78f58b12d518d6bea93a11d815816bd52;p=thirdparty%2Ffreeradius-server.git add file / line for indent debugging and move indent debugging to after the change, so it's clearer what has been done where. --- diff --git a/src/lib/server/log.h b/src/lib/server/log.h index 2ca5b924d27..528ad312102 100644 --- a/src/lib/server/log.h +++ b/src/lib/server/log.h @@ -404,12 +404,12 @@ typedef struct { * only RINFO, RWARN, RERROR etc... */ # define RINDENT() do {\ - RDEBUG4(">> (%i)", request->log.unlang_indent); \ if (request->module) {\ request->log.module_indent += 2;\ } else {\ request->log.unlang_indent += 2;\ }\ + RDEBUG4(">> (%i) %s[%u]", request->log.unlang_indent, __FILE__, __LINE__); \ } while(0) /** Exdent (unindent) R* messages by one level @@ -418,12 +418,12 @@ typedef struct { * only RINFO, RWARN, RERROR etc... */ # define REXDENT() do {\ + RDEBUG4("<< (%i) %s[%u]", request->log.unlang_indent, __FILE__, __LINE__); \ if (request->module) {\ request->log.module_indent -= 2;\ } else {\ request->log.unlang_indent -= 2;\ }\ - RDEBUG4("<< (%i)", request->log.unlang_indent); \ } while(0) #else /** Indent R* messages by one level