Merge pull request #14112 from paul-szczepanek-arm/fix-arm-compile

ARM linking issue: compile out trace when not available
pull/14032/head
Martin Kojtal 2021-01-05 09:45:27 +00:00 committed by GitHub
commit 7ad4304c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1223,7 +1223,9 @@ buffer_t *tcp_up(buffer_t *buf)
seg_len++;
}
#if defined(FEA_TRACE_SUPPORT) && MBED_CONF_MBED_TRACE_ENABLE && (MBED_TRACE_MAX_LEVEL >= TRACE_LEVEL_DEBUG)
tr_debug("TCP_UP: dst_p=%d, src_p=%d, flags=%s", buf->dst_sa.port, buf->src_sa.port, trace_tcp_flags(flags));
#endif
/* clear flags that will be ignored */
flags &= ~(TCP_FLAG_CWR | TCP_FLAG_ECE | TCP_FLAG_URG);