Merge branch 'feature/remve_file_name_in_debuglog' into 'master'

feat(tcpip_adapter): Remove file name from debug log

See merge request sdk/ESP8266_RTOS_SDK!133
This commit is contained in:
Wu Jian Gang
2018-05-04 17:10:37 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -5,4 +5,4 @@ COMPONENT_ADD_INCLUDEDIRS += include
COMPONENT_SRCDIRS := ./
CFLAGS += -DLWIP_OPEN_SRC -DMEMLEAK_DEBUG -U__FILE__ -D__FILE__='"$(subst $(dir $<),,$<)"'
CFLAGS += -DMEMLEAK_DEBUG

View File

@ -52,8 +52,8 @@ bool default_hostname;
#define IFNAME1 'n'
#ifdef CONFIG_TCPIP_ADAPER_DEBUG
#define TAG ""
#define TCPIP_ATAPTER_LOG(str, ...) printf(TAG __FILE__ " line: %d " str, __LINE__, ##__VA_ARGS__)
#define TAG "TCPIP_ADAPTER"
#define TCPIP_ATAPTER_LOG(str, ...) printf(TAG " line: %d " str, __LINE__, ##__VA_ARGS__)
#else
#define TCPIP_ATAPTER_LOG(str, ...)
#endif