feat(tcpip_adapter): Remove file name from debug log

This commit is contained in:
Zhang Jun Hao
2018-05-04 15:46:25 +08:00
parent 3b42a015f4
commit 0681e1d0a9
2 changed files with 3 additions and 3 deletions

View File

@ -5,4 +5,4 @@ COMPONENT_ADD_INCLUDEDIRS += include
COMPONENT_SRCDIRS := ./ 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' #define IFNAME1 'n'
#ifdef CONFIG_TCPIP_ADAPER_DEBUG #ifdef CONFIG_TCPIP_ADAPER_DEBUG
#define TAG "" #define TAG "TCPIP_ADAPTER"
#define TCPIP_ATAPTER_LOG(str, ...) printf(TAG __FILE__ " line: %d " str, __LINE__, ##__VA_ARGS__) #define TCPIP_ATAPTER_LOG(str, ...) printf(TAG " line: %d " str, __LINE__, ##__VA_ARGS__)
#else #else
#define TCPIP_ATAPTER_LOG(str, ...) #define TCPIP_ATAPTER_LOG(str, ...)
#endif #endif