mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 14:15:37 +00:00
Rename a debug function
This commit is contained in:
parent
80d627a5ae
commit
a16e7c468c
|
@ -41,7 +41,7 @@
|
||||||
#define MBEDTLS_DEBUG_STRIP_PARENS( ... ) __VA_ARGS__
|
#define MBEDTLS_DEBUG_STRIP_PARENS( ... ) __VA_ARGS__
|
||||||
|
|
||||||
#define MBEDTLS_SSL_DEBUG_MSG( level, 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 )
|
MBEDTLS_DEBUG_STRIP_PARENS args )
|
||||||
|
|
||||||
#define MBEDTLS_SSL_DEBUG_RET( level, text, ret ) \
|
#define MBEDTLS_SSL_DEBUG_RET( level, text, ret ) \
|
||||||
|
@ -89,7 +89,7 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
void mbedtls_debug_set_threshold( int threshold );
|
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 *file, int line,
|
||||||
const char *format, ... );
|
const char *format, ... );
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ void mbedtls_debug_set_threshold( int threshold )
|
||||||
debug_threshold = 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 *file, int line,
|
||||||
const char *format, ... )
|
const char *format, ... )
|
||||||
{
|
{
|
||||||
|
|
|
@ -59,7 +59,7 @@ void debug_print_msg_threshold( int threshold, int level, char *file, int line,
|
||||||
mbedtls_debug_set_threshold( threshold );
|
mbedtls_debug_set_threshold( threshold );
|
||||||
mbedtls_ssl_conf_dbg( &conf, string_debug, &buffer);
|
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 );
|
"Text message, 2 == %d", 2 );
|
||||||
|
|
||||||
TEST_ASSERT( strcmp( buffer.buf, result_str ) == 0 );
|
TEST_ASSERT( strcmp( buffer.buf, result_str ) == 0 );
|
||||||
|
|
Loading…
Reference in a new issue