Skip to content

Commit 0681e1d

Browse files
author
Zhang Jun Hao
committed
feat(tcpip_adapter): Remove file name from debug log
1 parent 3b42a01 commit 0681e1d

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)