mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Rework debug to not need dynamic alloc
But introduces dependency on variadic macros
This commit is contained in:
parent
a7c8903ca6
commit
b74c245a20
3 changed files with 26 additions and 27 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue