diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-28 07:52:22 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-28 07:52:22 +0000 |
commit | 1fe9d38f8490430dcb7917c3f760061fe4d78d62 (patch) | |
tree | fa5e191d184484415e50f520277e5f84ab2c1e24 | |
parent | aff6e077cc5655bba7e986c8291fd57806b7aa7d (diff) | |
download | rsyslog-1fe9d38f8490430dcb7917c3f760061fe4d78d62.tar.gz rsyslog-1fe9d38f8490430dcb7917c3f760061fe4d78d62.tar.xz rsyslog-1fe9d38f8490430dcb7917c3f760061fe4d78d62.zip |
improved last execution line tracking a bit
-rw-r--r-- | debug.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -104,8 +104,9 @@ void dbgPrintAllDebugInfo(void); # define ENDfunc #endif #if 1 /* DEV debug: set to 1 to enable -- rgerhards, 2008-01-13 */ -# define RUNLOG dbgprintf("%s:%d: %s: log point\n", __FILE__, __LINE__, __func__) -# define RUNLOG_VAR(fmt, x) dbgprintf("%s:%d: %s: var '%s'[%s]: " fmt "\n", __FILE__, __LINE__, __func__, #x, fmt, x) +# define RUNLOG dbgSetExecLocation(dbgCALLStaCK_POP_POINT, __LINE__); dbgprintf("%s:%d: %s: log point\n", __FILE__, __LINE__, __func__) +# define RUNLOG_VAR(fmt, x) dbgSetExecLocation(dbgCALLStaCK_POP_POINT, __LINE__);\ + dbgprintf("%s:%d: %s: var '%s'[%s]: " fmt "\n", __FILE__, __LINE__, __func__, #x, fmt, x) #else # define RUNLOG # define RUNLOG_VAR(x) |