]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
note when we set debug indent to zero, too
authorAlan T. DeKok <aland@freeradius.org>
Fri, 23 Jun 2017 16:45:09 +0000 (12:45 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 23 Jun 2017 16:45:09 +0000 (12:45 -0400)
src/include/log.h

index 7dbbdebd6752820813c75dab62d0af9170e2b7cf..d73f5db0114576d32dd067f75abbe7d8fc417294 100644 (file)
@@ -334,7 +334,14 @@ void       radlog_fatal(char const *fmt, ...) CC_HINT(format (printf, 1, 2)) CC_HINT(n
  * @param _i index e.g. 3 (starts from 0).
  * @param _e error e.g. "kitties are not pets, are nature devouring hell beasts".
  */
+#ifndef DEBUG_INDENT
 #define RMARKER(_l, _p, _m, _i, _e)    radlog_request_marker(_l, _p, request, _m, _i, _e)
+#else
+#define RMARKER(_l, _p, _m, _i, _e) do { \
+               RDEBUG4("== (0) at %s[%u]", __FILE__, __LINE__); \
+               radlog_request_marker(_l, _p, request, _m, _i, _e); \
+       } while (0)
+#endif
 
 /** Output string with error marker, showing where format error occurred
  *