Skip to content

Commit

Permalink
Deprecate the misnamed YOTTA_CFG_MTRACE_TMP_LINE_LENGTH flag, which i…
Browse files Browse the repository at this point in the history
…s to be removed in the next release.

Configuring the tmp line length value through config.json in yotta requires defining a separate "mtrace" group,
because the name of the flag doesn't follow the 'YOTTA_CFG_MBED_TRACE_' pattern.

This allows configuring the tmp line length in the same group mbed-trace is enabled in.

(The name of the flag seems to be a relic of the time the name of the library was still being decided.
For some reason it wasn't changed with the other ones when 'mbed-trace' was decided on.)
  • Loading branch information
Tommi Kasma committed Jun 29, 2016
1 parent 7550ed8 commit 9abf6ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/mbed_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@
#define DEFAULT_TRACE_LINE_LENGTH 1024
#endif
/** default max temporary buffer size in bytes, used in
trace_ipv6, trace_array and trace_strn */
#ifdef YOTTA_CFG_MTRACE_TMP_LINE_LEN
trace_ipv6, trace_ipv6_prefix and trace_array */
#ifdef YOTTA_CFG_MBED_TRACE_TMP_LINE_LEN
#define DEFAULT_TRACE_TMP_LINE_LEN YOTTA_CFG_MBED_TRACE_TMP_LINE_LEN
#elif defined YOTTA_CFG_MTRACE_TMP_LINE_LEN
// This flag is depcrecated! Use YOTTA_CFG_MBED_TRACE_TMP_LINE_LEN instead.
#warning The YOTTA_CFG_MTRACE_TMP_LINE_LEN flag is deprecated! Use YOTTA_CFG_MBED_TRACE_TMP_LINE_LEN instead.
#define DEFAULT_TRACE_TMP_LINE_LEN YOTTA_CFG_MTRACE_TMP_LINE_LEN
#else
#define DEFAULT_TRACE_TMP_LINE_LEN 128
Expand Down

0 comments on commit 9abf6ef

Please # to comment.