commit | 7b23c51595c49b6cf34a39794c820017a0d4f801 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg2@elzevir.fr> | Mon Aug 31 16:11:00 2015 +0200 |
committer | Manuel Pégourié-Gonnard <mpg2@elzevir.fr> | Mon Aug 31 16:17:33 2015 +0200 |
tree | a37e5af526997f2fdcac82e61aa787596aeb2e8c | |
parent | d68434efbad8465e388ee5cc86cb28253f2539fa [diff] [blame] |
Print "thread ID" in debug messages closes #218
diff --git a/tests/suites/test_suite_debug.function b/tests/suites/test_suite_debug.function index 3c77ca5..98f98b0 100644 --- a/tests/suites/test_suite_debug.function +++ b/tests/suites/test_suite_debug.function
@@ -25,6 +25,11 @@ *p++ = ':'; *p++ = ' '; +#if defined(MBEDTLS_THREADING_C) + /* Skip "thread ID" (up to the first space) as it is not predictable */ + while( *str++ != ' ' ); +#endif + memcpy( p, str, strlen( str ) ); p += strlen( str );