Renamed log module into IpcLog to reduce chances of name collision
authorVW <vwan@ti.com>
Sat, 16 Mar 2013 00:41:30 +0000 (17:41 -0700)
committerVW <vwan@ti.com>
Sat, 16 Mar 2013 00:41:30 +0000 (17:41 -0700)
qnx/include/_IpcLog.h [moved from qnx/include/_log.h with 84% similarity]
qnx/src/api/MessageQ.c
qnx/src/api/NameServer.c
qnx/src/ipc3x_dev/ti/syslink/ipc/hlos/knl/MessageQ_daemon.c
qnx/src/ipc3x_dev/ti/syslink/utils/hlos/knl/NameServer_daemon.c
qnx/src/utils/IpcLog.c [moved from qnx/src/utils/log.c with 95% similarity]
qnx/src/utils/TiIpcFxns.c

similarity index 84%
rename from qnx/include/_log.h
rename to qnx/include/_IpcLog.h
index 874dc3c9c530f601ca00ca46b6b49b000c7c916c..1319bced49a06f7d9daa0dcff02065ac7af6a8c8 100644 (file)
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 /*
- *  ======== _log.h ========
+ *  ======== _IpcLog.h ========
  */
 
-#ifndef _log_
-#define _log_
+#ifndef _IpcLog_
+#define _IpcLog_
 
 #include <stdio.h>
 
 extern "C" {
 #endif
 
-extern Bool logFile;
-extern FILE *logPtr;
+extern Bool IpcLog_logFile;
+extern FILE * IpcLog_logPtr;
 
 /* macros for writing to log file: */
 #define LOG0(a)  \
-    if (logFile == TRUE) {  fprintf(logPtr, a); fflush(logPtr); }
+    if (IpcLog_logFile == TRUE) \
+        {  fprintf(IpcLog_logPtr, a); fflush(IpcLog_logPtr); }
 
 #define LOG1(a, b)  \
-    if (logFile == TRUE) {  fprintf(logPtr, a, b); fflush(logPtr); }
+    if (IpcLog_logFile == TRUE) \
+        {  fprintf(IpcLog_logPtr, a, b); fflush(IpcLog_logPtr); }
 
 #define LOG2(a, b, c)  \
-    if (logFile == TRUE) {  fprintf(logPtr, a, b, c); fflush(logPtr); }
+    if (IpcLog_logFile == TRUE) \
+        {  fprintf(IpcLog_logPtr, a, b, c); fflush(IpcLog_logPtr); }
 
 
 /* macros for generating verbose output: */
index 145f74bb875f8aeab069e3f33a8586656a0a68cf..8ac43db05353d4722d8295a5dcf00c0a12e46d33 100644 (file)
 #include <_MultiProc.h>
 #include <ti/ipc/MessageQ.h>
 #include <_MessageQ.h>
-#include <_log.h>
+#include <_IpcLog.h>
 #include <ti/syslink/inc/MessageQDrvDefs.h>
 
 #include <sys/select.h>
index d7c7737f8b29195944b4b8e2b4f1b3059bf540cf..de2cf43846c858c482db7cf3d437d46b1be0ace9 100644 (file)
@@ -44,7 +44,7 @@
 #include <time.h>
 
 #include <ti/ipc/NameServer.h>
-#include <_log.h>
+#include <_IpcLog.h>
 #include <_MultiProc.h>
 #include <ti/syslink/inc/IoctlDefs.h>
 #include <ti/syslink/inc/usr/Qnx/NameServerDrv.h>
@@ -231,4 +231,4 @@ Int NameServer_delete(NameServer_Handle *nsHandle)
     *nsHandle = cmdArgs.args.delete.handle;
 
     return status;
-}
\ No newline at end of file
+}
index dda3a848f88342daef589dd2c5e88e2cfe32c04c..c6e12b8274d6e2280e046be6a1112ee7fcef12ad 100644 (file)
 #include <_MultiProc.h>
 #include <ti/ipc/MessageQ.h>
 #include <_MessageQ.h>
-#include <_log.h>
+#include <_IpcLog.h>
 
 /* =============================================================================
  * Macros/Constants
index ee68813f811e1c4fb8890d10d92983c6fc6a91d3..86cc94ccc8a1a328669ffdaf63e65213b9884f86 100644 (file)
@@ -68,7 +68,7 @@
 #include <_MessageQCopyDefs.h>
 #include <_NameServer.h>
 #include <_NameServerRemoteRpmsg.h>
-#include <_log.h>
+#include <_IpcLog.h>
 
 /* TI Ipc utils: */
 #include <TiIpcFxns.h>
similarity index 95%
rename from qnx/src/utils/log.c
rename to qnx/src/utils/IpcLog.c
index 5fee481fc2608e5ad7b04691627800f39eed1144..1ed5c1cb9d7b52a9c77bddbdd772f4e6b1fde099 100644 (file)
@@ -30,7 +30,7 @@
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 /*
- *  ======== Log.c ========
+ *  ======== IpcLog.c ========
  *
  *  Implementation of functions for log output.
  */
@@ -45,5 +45,5 @@
  * command line
  */
 /* Set to TRUE to enable log output */
-Bool logFile = FALSE;
-FILE *logPtr = stdout;
+Bool IpcLog_logFile = FALSE;
+FILE * IpcLog_logPtr = stdout;
index 64726f3db434f77e5ffbdef06ae55811ec4021a8..3ffb3b16238122fb47ebd5bdcfdb140c2c0cbddb 100644 (file)
@@ -52,7 +52,7 @@
 #include "ti/ipc/ti_ipc.h"
 
 /* For PRINTVERBOSE* */
-#include <_log.h>
+#include <_IpcLog.h>
 
 static Bool verbose = FALSE;