diff --git a/include/mbedtls/debug.h b/include/mbedtls/debug.h index bbbc2e836..6b44f1f4d 100644 --- a/include/mbedtls/debug.h +++ b/include/mbedtls/debug.h @@ -41,7 +41,7 @@ #define MBEDTLS_DEBUG_STRIP_PARENS( ... ) __VA_ARGS__ #define MBEDTLS_SSL_DEBUG_MSG( level, args ) \ - mbedtls_debug_print_fmt( ssl, level, __FILE__, __LINE__, \ + mbedtls_debug_print_msg( ssl, level, __FILE__, __LINE__, \ MBEDTLS_DEBUG_STRIP_PARENS args ) #define MBEDTLS_SSL_DEBUG_RET( level, text, ret ) \ @@ -89,7 +89,7 @@ extern "C" { */ void mbedtls_debug_set_threshold( int threshold ); -void mbedtls_debug_print_fmt( const mbedtls_ssl_context *ssl, int level, +void mbedtls_debug_print_msg( const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *format, ... ); diff --git a/library/debug.c b/library/debug.c index 8189473e7..672e04537 100644 --- a/library/debug.c +++ b/library/debug.c @@ -52,7 +52,7 @@ void mbedtls_debug_set_threshold( int threshold ) debug_threshold = threshold; } -void mbedtls_debug_print_fmt( const mbedtls_ssl_context *ssl, int level, +void mbedtls_debug_print_msg( const mbedtls_ssl_context *ssl, int level, const char *file, int line, const char *format, ... ) { diff --git a/tests/suites/test_suite_debug.function b/tests/suites/test_suite_debug.function index 9cfd68472..3c77ca56b 100644 --- a/tests/suites/test_suite_debug.function +++ b/tests/suites/test_suite_debug.function @@ -59,7 +59,7 @@ 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_fmt( &ssl, level, file, line, + mbedtls_debug_print_msg( &ssl, level, file, line, "Text message, 2 == %d", 2 ); TEST_ASSERT( strcmp( buffer.buf, result_str ) == 0 );