Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ESP8266Interface by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 42:3f62103a4f3c
- Parent:
- 40:0a83315aea0a
- Child:
- 43:2e326d95fe2c
diff -r 264902b160ea -r 3f62103a4f3c Socket/TCPSocketConnection.cpp --- 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, ...)