Customized SNICInterface

Fork of NySNICInterface by Ryo Iizuka

Revision:
40:b6b10c22a121
Parent:
39:a1233ca02edf
Child:
41:1c1b5ad4d491
diff -r a1233ca02edf -r b6b10c22a121 SNIC/SNIC_UartCommandManager.cpp
--- a/SNIC/SNIC_UartCommandManager.cpp	Tue Jul 15 02:08:42 2014 +0000
+++ b/SNIC/SNIC_UartCommandManager.cpp	Tue Jul 15 09:56:37 2014 +0000
@@ -169,7 +169,7 @@
     
     if( con_info_p->is_connected == false )
     {
-        printf(" Socket id \"%d\" is not connected\r\n", socket_id);
+        DEBUG_PRINT(" Socket id \"%d\" is not connected\r\n", socket_id);
         return;
     }
     
@@ -179,7 +179,7 @@
     {
         if( con_info_p->recvbuf_p->isFull() )
         {
-            printf("Receive buffer is full.\r\n");
+            DEBUG_PRINT("Receive buffer is full.\r\n");
             break;
         }
         
@@ -204,7 +204,7 @@
     // Get socket id of client from payload
     socket_id = payload_p[3];
 
-    printf("[connectedTCPClient] socket id:%d\r\n", socket_id);
+    DEBUG_PRINT("[connectedTCPClient] socket id:%d\r\n", socket_id);
     
     // Get Connection information
     C_SNIC_Core::tagCONNECT_INFO_T *con_info_p = instance_p->getConnectInfo( socket_id );
@@ -215,7 +215,7 @@
 
     if( con_info_p->recvbuf_p == NULL )
     {
-//        printf( "create recv buffer[socket:%d]\r\n", socket_id);
+//        DEBUG_PRINT( "create recv buffer[socket:%d]\r\n", socket_id);
         con_info_p->recvbuf_p = new CircBuffer<char>(SNIC_UART_RECVBUF_SIZE);
     }
     con_info_p->is_connected  = true;
@@ -242,7 +242,7 @@
 
     if( con_info_p->recvbuf_p == NULL )
     {
-//        printf( "create recv buffer[socket:%d]\r\n", payload_p[2]);
+//        DEBUG_PRINT( "create recv buffer[socket:%d]\r\n", payload_p[2]);
         con_info_p->recvbuf_p = new CircBuffer<char>(SNIC_UART_RECVBUF_SIZE);
     }
     con_info_p->mutex.lock();
@@ -260,7 +260,7 @@
     {
         if( con_info_p->recvbuf_p->isFull() )
         {
-            printf("Receive buffer is full.\r\n");
+            DEBUG_PRINT("Receive buffer is full.\r\n");
             break;
         }