mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 00:56:38 +08:00
feat(tcpip_adapter): Remove file name from debug log
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user