]> git.stg.codes - stg.git/blob - projects/rlm_stg/radlog.c
Merge branch 'stg-2.409-radius'
[stg.git] / projects / rlm_stg / radlog.c
1 #include "radlog.h"
2
3 //#ifndef NDEBUG
4 //#define NDEBUG
5 #include <freeradius/ident.h>
6 #include <freeradius/radiusd.h>
7 #include <freeradius/modules.h>
8 //#undef NDEBUG
9 //#endif
10
11 #include <stdarg.h>
12
13 void RadLog(const char* format, ...)
14 {
15     char buf[1024];
16
17     va_list vl;
18     va_start(vl, format);
19     vsnprintf(buf, sizeof(buf), format, vl);
20     va_end(vl);
21
22     DEBUG("[rlm_stg] *** %s", buf);
23 }