From: Alan T. DeKok Date: Fri, 25 Aug 2017 15:15:33 +0000 (-0400) Subject: fix RDEBUG macro X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b162bbac8378033348e49dbfc8c016d6c6b2d140;p=thirdparty%2Ffreeradius-server.git fix RDEBUG macro which means we don't get the full behavior of radlog_request(), but at least the test utilities will link correctly --- diff --git a/src/lib/io/worker.c b/src/lib/io/worker.c index bc234d155a4..5d440edb49a 100644 --- a/src/lib/io/worker.c +++ b/src/lib/io/worker.c @@ -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.