1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Rework debug to not need dynamic alloc

But introduces dependency on variadic macros
This commit is contained in:
Manuel Pégourié-Gonnard
2015-06-29 20:08:23 +02:00
parent a7c8903ca6
commit b74c245a20
3 changed files with 26 additions and 27 deletions

View File

@@ -59,8 +59,8 @@ void debug_print_msg_threshold( int threshold, int level, char *file, int line,
mbedtls_debug_set_threshold( threshold );
mbedtls_ssl_conf_dbg( &conf, string_debug, &buffer);
mbedtls_debug_print_msg_free( &ssl, level, file, line,
mbedtls_debug_fmt("Text message, 2 == %d", 2 ) );
mbedtls_debug_print_fmt( &ssl, level, file, line,
"Text message, 2 == %d", 2 );
TEST_ASSERT( strcmp( buffer.buf, result_str ) == 0 );