summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-28 07:52:22 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-28 07:52:22 +0000
commit1fe9d38f8490430dcb7917c3f760061fe4d78d62 (patch)
treefa5e191d184484415e50f520277e5f84ab2c1e24
parentaff6e077cc5655bba7e986c8291fd57806b7aa7d (diff)
downloadrsyslog-1fe9d38f8490430dcb7917c3f760061fe4d78d62.tar.gz
rsyslog-1fe9d38f8490430dcb7917c3f760061fe4d78d62.tar.xz
rsyslog-1fe9d38f8490430dcb7917c3f760061fe4d78d62.zip
improved last execution line tracking a bit
-rw-r--r--debug.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/debug.h b/debug.h
index 35ba8c80..565fa04d 100644
--- a/debug.h
+++ b/debug.h
@@ -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)