]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-linux/mpm-transport.git/commitdiff
debug: Add debug enhancements DEV.MPM-TRANSPORT-02.00.00.01A
authorSam Nelson <sam.nelson@ti.com>
Fri, 1 Apr 2016 16:34:48 +0000 (12:34 -0400)
committerSam 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>
src/transport/mpm_transport.c
src/transport/mpm_transport_cfg.h

index 9e7f4dfc9c5be6a5aeaaa01be20e8af5cbd106f1..64053bd38f82f8983785aacbafecccd4afb8a7cf 100755 (executable)
@@ -1780,9 +1780,10 @@ void mpm_printf(int val, const char* str, ...) {
        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