Skip to content

Commit d6038a2

Browse files
committed
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
2 parents 2a5a639 + 0681e1d commit d6038a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/tcpip_adapter/component.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ COMPONENT_ADD_INCLUDEDIRS += include
55

66
COMPONENT_SRCDIRS := ./
77

8-
CFLAGS += -DLWIP_OPEN_SRC -DMEMLEAK_DEBUG -U__FILE__ -D__FILE__='"$(subst $(dir $<),,$<)"'
8+
CFLAGS += -DMEMLEAK_DEBUG

components/tcpip_adapter/include/tcpip_adapter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ bool default_hostname;
5252
#define IFNAME1 'n'
5353

5454
#ifdef CONFIG_TCPIP_ADAPER_DEBUG
55-
#define TAG ""
56-
#define TCPIP_ATAPTER_LOG(str, ...) printf(TAG __FILE__ " line: %d " str, __LINE__, ##__VA_ARGS__)
55+
#define TAG "TCPIP_ADAPTER"
56+
#define TCPIP_ATAPTER_LOG(str, ...) printf(TAG " line: %d " str, __LINE__, ##__VA_ARGS__)
5757
#else
5858
#define TCPIP_ATAPTER_LOG(str, ...)
5959
#endif

0 commit comments

Comments
 (0)