summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4404e26)
raw | patch | inline | side by side (parent: 4404e26)
author | Sam Nelson <sam.nelson@ti.com> | |
Fri, 1 Apr 2016 16:34:48 +0000 (12:34 -0400) | ||
committer | Sam Nelson <sam.nelson@ti.com> | |
Fri, 1 Apr 2016 17:19:25 +0000 (13:19 -0400) |
- Updated way to debug with syslog in case of using with multiproc
daemon
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
daemon
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
src/transport/mpm_transport.c | patch | blob | history | |
src/transport/mpm_transport_cfg.h | patch | blob | history |
index 9e7f4dfc9c5be6a5aeaaa01be20e8af5cbd106f1..64053bd38f82f8983785aacbafecccd4afb8a7cf 100755 (executable)
if (val <= VERBOSITY_LEVEL) {
va_list args;
va_start(args, str);
-#ifdef DEBUG
+#ifdef SYSLOG_DEBUG
vsyslog(LOG_INFO, str, args);
-#else
+#endif
+#ifdef DEBUG
vprintf(str, args);
#endif
va_end(args);
index 8348e1dd53ad37be0cf6c2100423efa6ddbaba46..a08c0bdf721c6bc977aebfc8995203e619b07b02 100644 (file)
#include "mpm_transport_time_profile.h"
#include "mpm_transport_rm.h"
-//#define DEBUG
+//#define DEBUG
+//#define SYSLOG_DEBUG
-#ifdef DEBUG
+#ifdef SYSLOG_DEBUG
#include "syslog.h"
#endif