Skip to content

Commit

Permalink
compile out trace when not available
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-szczepanek-arm authored and Arto Kinnunen committed Jan 18, 2021
1 parent 825373d commit 6f8b282
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/Common_Protocols/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6f8b282

Please sign in to comment.