Skip to content

Commit 7ad4304

Browse files
authored
Merge pull request #14112 from paul-szczepanek-arm/fix-arm-compile
ARM linking issue: compile out trace when not available
2 parents c28f0d6 + 2e714f4 commit 7ad4304

File tree

1 file changed

+2
-0
lines changed
  • connectivity/nanostack/sal-stack-nanostack/source/Common_Protocols

1 file changed

+2
-0
lines changed

connectivity/nanostack/sal-stack-nanostack/source/Common_Protocols/tcp.c

+2
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,9 @@ buffer_t *tcp_up(buffer_t *buf)
12231223
seg_len++;
12241224
}
12251225

1226+
#if defined(FEA_TRACE_SUPPORT) && MBED_CONF_MBED_TRACE_ENABLE && (MBED_TRACE_MAX_LEVEL >= TRACE_LEVEL_DEBUG)
12261227
tr_debug("TCP_UP: dst_p=%d, src_p=%d, flags=%s", buf->dst_sa.port, buf->src_sa.port, trace_tcp_flags(flags));
1228+
#endif
12271229
/* clear flags that will be ignored */
12281230
flags &= ~(TCP_FLAG_CWR | TCP_FLAG_ECE | TCP_FLAG_URG);
12291231

0 commit comments

Comments
 (0)