]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix RDEBUG macro
authorAlan T. DeKok <aland@freeradius.org>
Fri, 25 Aug 2017 15:15:33 +0000 (11:15 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 25 Aug 2017 15:15:33 +0000 (11:15 -0400)
which means we don't get the full behavior of radlog_request(),
but at least the test utilities will link correctly

src/lib/io/worker.c

index bc234d155a404ebdcf102b0475b44c65b45ed57d..5d440edb49a2d77aa2b318f6b302c2c86e4dd3ef 100644 (file)
@@ -88,11 +88,15 @@ static void fr_worker_verify(fr_worker_t *worker);
 #undef DEBUG2
 #undef DEBUG3
 #undef ERROR
+#undef RDEBUG
+#undef RDEBUG2
+#undef RDEBUG3
 
 #define DEBUG(fmt, ...) if (worker->lvl) fr_log(worker->log, L_DBG, fmt, ## __VA_ARGS__)
 #define DEBUG2(fmt, ...) if (worker->lvl >= L_DBG_LVL_2) fr_log(worker->log, L_DBG, fmt, ## __VA_ARGS__)
 #define DEBUG3(fmt, ...) if (worker->lvl >= L_DBG_LVL_3) fr_log(worker->log, L_DBG, fmt, ## __VA_ARGS__)
 #define ERROR(fmt, ...) fr_log(worker->log, L_ERR, fmt, ## __VA_ARGS__)
+#define RDEBUG(fmt, ...) if (worker->lvl) fr_log(worker->log, L_DBG, "(%" PRIu64 ")  " fmt, request->number, ## __VA_ARGS__)
 
 /**
  *  A worker which takes packets from a master, and processes them.