summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-10-08 14:56:02 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-10-08 14:56:02 +0200
commit82b583c4f99dd9beb30360f222c4d2a1152f75e1 (patch)
treec9aae7c3775c740c629edd3b0817cb59c56ec11d /runtime
parent0fa23994669417fff4c4c057ce0c9d1e96f6d56c (diff)
downloadrsyslog-82b583c4f99dd9beb30360f222c4d2a1152f75e1.tar.gz
rsyslog-82b583c4f99dd9beb30360f222c4d2a1152f75e1.tar.xz
rsyslog-82b583c4f99dd9beb30360f222c4d2a1152f75e1.zip
restructured imudp receive loop
cleaned up previous code and redid it in a way that makes it much easier to extend it also added a new macro DBGPRINTF which is a performance-optimzed version of dbgprintf
Diffstat (limited to 'runtime')
-rw-r--r--runtime/debug.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/debug.h b/runtime/debug.h
index d9d576b5..7ac29765 100644
--- a/runtime/debug.h
+++ b/runtime/debug.h
@@ -100,6 +100,7 @@ void dbgSetThrdName(uchar *pszName);
void dbgPrintAllDebugInfo(void);
/* macros */
+#define DBGPRINTF(...) if(Debug) { dbgprintf(__VA_ARGS__); }
#ifdef RTINST
# define BEGINfunc static dbgFuncDB_t *pdbgFuncDB; int dbgCALLStaCK_POP_POINT = dbgEntrFunc(&pdbgFuncDB, __FILE__, __func__, __LINE__);
# define ENDfunc dbgExitFunc(pdbgFuncDB, dbgCALLStaCK_POP_POINT, RS_RET_NO_IRET);