mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 17:47:04 +08:00
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:
@ -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
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user