summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Nelson2016-04-01 11:34:48 -0500
committerSam Nelson2016-04-01 12:19:25 -0500
commit1268e249a612cec8b0540bfaeaad177c1f42cd5c (patch)
treea7b1b1d3a6cdea0cfa74ccbc36da4752410ad411
parent4404e26b6185d58049c22cb4cbc836e587cb3909 (diff)
downloadmpm-transport-1268e249a612cec8b0540bfaeaad177c1f42cd5c.tar.gz
mpm-transport-1268e249a612cec8b0540bfaeaad177c1f42cd5c.tar.xz
mpm-transport-1268e249a612cec8b0540bfaeaad177c1f42cd5c.zip
debug: Add debug enhancementsDEV.MPM-TRANSPORT-02.00.00.01A
- Updated way to debug with syslog in case of using with multiproc daemon Signed-off-by: Sam Nelson <sam.nelson@ti.com>
-rwxr-xr-xsrc/transport/mpm_transport.c5
-rw-r--r--src/transport/mpm_transport_cfg.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/mpm_transport.c b/src/transport/mpm_transport.c
index 9e7f4df..64053bd 100755
--- a/src/transport/mpm_transport.c
+++ b/src/transport/mpm_transport.c
@@ -1780,9 +1780,10 @@ void mpm_printf(int val, const char* str, ...) {
1780 if (val <= VERBOSITY_LEVEL) { 1780 if (val <= VERBOSITY_LEVEL) {
1781 va_list args; 1781 va_list args;
1782 va_start(args, str); 1782 va_start(args, str);
1783#ifdef DEBUG 1783#ifdef SYSLOG_DEBUG
1784 vsyslog(LOG_INFO, str, args); 1784 vsyslog(LOG_INFO, str, args);
1785#else 1785#endif
1786#ifdef DEBUG
1786 vprintf(str, args); 1787 vprintf(str, args);
1787#endif 1788#endif
1788 va_end(args); 1789 va_end(args);
diff --git a/src/transport/mpm_transport_cfg.h b/src/transport/mpm_transport_cfg.h
index 8348e1d..a08c0bd 100644
--- a/src/transport/mpm_transport_cfg.h
+++ b/src/transport/mpm_transport_cfg.h
@@ -45,9 +45,10 @@
45#include "mpm_transport_time_profile.h" 45#include "mpm_transport_time_profile.h"
46#include "mpm_transport_rm.h" 46#include "mpm_transport_rm.h"
47 47
48//#define DEBUG 48//#define DEBUG
49//#define SYSLOG_DEBUG
49 50
50#ifdef DEBUG 51#ifdef SYSLOG_DEBUG
51#include "syslog.h" 52#include "syslog.h"
52#endif 53#endif
53 54