diff --git a/components/tcpip_adapter/component.mk b/components/tcpip_adapter/component.mk index 98e2802f..02c87887 100644 --- a/components/tcpip_adapter/component.mk +++ b/components/tcpip_adapter/component.mk @@ -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 diff --git a/components/tcpip_adapter/include/tcpip_adapter.h b/components/tcpip_adapter/include/tcpip_adapter.h index e53fa6d8..35726dc3 100644 --- a/components/tcpip_adapter/include/tcpip_adapter.h +++ b/components/tcpip_adapter/include/tcpip_adapter.h @@ -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