Enable debugging function call in mbedtls
Remove '#if' statement for general debugging funtion
@@ -81,7 +81,6 @@ static inline void debug_send_line(const mbedtls_ssl_context *ssl, int level, co
* Since there is no portable way to get one, use the address of the ssl
* context instead, as it shouldn't be shared between threads.
*/
-#if 0 /* For TinyAra */
#if defined(MBEDTLS_THREADING_C)
char idstr[20 + DEBUG_BUF_SIZE]; /* 0x + 16 nibbles + ': ' */
mbedtls_snprintf(idstr, sizeof(idstr), "%p: %s", ssl, str);
@@ -89,9 +88,6 @@ static inline void debug_send_line(const mbedtls_ssl_context *ssl, int level, co
#else
ssl->conf->f_dbg(ssl->conf->p_dbg, level, file, line, str);
#endif
-#else
- printf("%s(%d) : %s", file, line, str);
-#endif
}
void mbedtls_debug_print_msg(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *format, ...)
