debug version

Dependents:   HTTPClient_WiFi_HelloWorld_src

Fork of SNICInterface by muRata

Revision:
40:b6b10c22a121
Parent:
39:a1233ca02edf
Child:
41:1c1b5ad4d491
diff -r a1233ca02edf -r b6b10c22a121 Socket/Socket.cpp
--- a/Socket/Socket.cpp	Tue Jul 15 02:08:42 2014 +0000
+++ b/Socket/Socket.cpp	Tue Jul 15 09:56:37 2014 +0000
@@ -53,7 +53,7 @@
     tagMEMPOOL_BLOCK_T *payload_buf = snic_core_p->allocCmdBuf();
     if( payload_buf == NULL )
     {
-        printf("socket close payload_buf NULL\r\n");
+        DEBUG_PRINT("socket close payload_buf NULL\r\n");
         return -1;
     }
 
@@ -78,14 +78,14 @@
     ret = uartCmdMgr_p->wait();
     if( ret != 0 )
     {
-        printf( "socket close failed\r\n" );
+        DEBUG_PRINT( "socket close failed\r\n" );
         snic_core_p->freeCmdBuf( payload_buf );
         return -1;
     }
     
     if( uartCmdMgr_p->getCommandStatus() != 0 )
     {
-        printf("socket close status:%02x\r\n", uartCmdMgr_p->getCommandStatus());
+        DEBUG_PRINT("socket close status:%02x\r\n", uartCmdMgr_p->getCommandStatus());
         snic_core_p->freeCmdBuf( payload_buf );
         return -1;
     }
@@ -102,7 +102,7 @@
     tagMEMPOOL_BLOCK_T *payload_buf = snic_core_p->allocCmdBuf();
     if( payload_buf == NULL )
     {
-        printf("createSocket payload_buf NULL\r\n");
+        DEBUG_PRINT("createSocket payload_buf NULL\r\n");
         return -1;
     }
 
@@ -139,14 +139,14 @@
     ret = uartCmdMgr_p->wait();
     if( ret != 0 )
     {
-        printf( "createSocket failed\r\n" );
+        DEBUG_PRINT( "createSocket failed\r\n" );
         snic_core_p->freeCmdBuf( payload_buf );
         return -1;
     }
 
     if( uartCmdMgr_p->getCommandStatus() != 0 )
     {
-        printf("createSocket status:%02x\r\n", uartCmdMgr_p->getCommandStatus());
+        DEBUG_PRINT("createSocket status:%02x\r\n", uartCmdMgr_p->getCommandStatus());
         snic_core_p->freeCmdBuf( payload_buf );
         return -1;
     }
@@ -164,7 +164,7 @@
 
     if( host_p == NULL )
     {
-        printf("resolveHostName parameter error\r\n");
+        DEBUG_PRINT("resolveHostName parameter error\r\n");
         return -1;
     }
     
@@ -172,7 +172,7 @@
     tagMEMPOOL_BLOCK_T *payload_buf = snic_core_p->allocCmdBuf();
     if( payload_buf == NULL )
     {
-        printf("resolveHostName payload_buf NULL\r\n");
+        DEBUG_PRINT("resolveHostName payload_buf NULL\r\n");
         return -1;
     }
     
@@ -208,7 +208,7 @@
     ret = uartCmdMgr_p->wait();
     if( ret != 0 )
     {
-        printf( "resolveHostName failed\r\n" );
+        DEBUG_PRINT( "resolveHostName failed\r\n" );
         snic_core_p->freeCmdBuf( payload_buf );
         return -1;
     }