Added monitoring feature of ESP8266's UART
Dependents: ESP8266_W7500_Example DualNetworkInterface-Basic
Fork of ESP8266Interface by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 42:3f62103a4f3c
- Parent:
- 40:0a83315aea0a
- Child:
- 43:2e326d95fe2c
--- a/Socket/TCPSocketConnection.cpp Thu May 07 03:37:55 2015 +0000 +++ b/Socket/TCPSocketConnection.cpp Thu May 07 03:51:02 2015 +0000 @@ -23,10 +23,10 @@ using std::memcpy; //Debug is disabled by default -#if 0 -#define DBG(x, ...) printf("[TCPConnection : DBG]"x"\r\n", ##__VA_ARGS__); -#define WARN(x, ...) printf("[TCPConnection: WARN]"x"\r\n", ##__VA_ARGS__); -#define ERR(x, ...) printf("[TCPConnection : ERR]"x"\r\n", ##__VA_ARGS__); +#if 1 +#define DBG(x, ...) printf("[TCPConnection : DBG]"x" \t[%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__); +#define WARN(x, ...) printf("[TCPConnection: WARN]"x" \t[%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__); +#define ERR(x, ...) printf("[TCPConnection : ERR]"x" \t[%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__); #else #define DBG(x, ...) #define WARN(x, ...)