cc3000 hostdriver with the mbed socket interface

Dependents:   cc3000_hello_world_demo cc3000_simple_socket_demo cc3000_ntp_demo cc3000_ping_demo ... more

Revision:
13:5e36c267e62f
Parent:
11:5e3771b29385
Child:
16:f3676ae62f96
--- a/Socket/Endpoint.cpp	Tue Oct 01 21:17:44 2013 +0000
+++ b/Socket/Endpoint.cpp	Wed Oct 02 15:00:07 2013 +0000
@@ -109,15 +109,14 @@
     _remote_host.sin_family = AF_INET;
     _remote_host.sin_port = htons(port);
 
-#if (CC3000_DEBUG == 1)
-    printf("DEBUG: remote host address (string): %s\r\n",get_address());
-    printf("DEBUG: remote host address from s_addr : %d.%d.%d.%d\r\n",
+    DBG_SOCKET("remote host address (string): %s",get_address());
+    DBG_SOCKET("remote host address from s_addr : %d.%d.%d.%d",
             int(_remote_host.sin_addr.s_addr & 0xFF),
             int((_remote_host.sin_addr.s_addr & 0xFF00) >> 8),
             int((_remote_host.sin_addr.s_addr & 0xFF0000) >> 16),
             int((_remote_host.sin_addr.s_addr & 0xFF000000) >> 24));
-   printf("DEBUG: port: %d \r\n", port);
-#endif
+    DBG_SOCKET("port: %d", port);
+
     return 0;
 }