mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 20:31:11 +00:00
Revert "Avoid formatting debug message uselessly"
This reverts commit 925a72628b
.
Reason: introduced an ABI change in the maintenance branch.
This commit is contained in:
parent
84690c35ee
commit
705de2f98d
|
@ -57,10 +57,7 @@
|
||||||
|
|
||||||
|
|
||||||
#define SSL_DEBUG_MSG( level, args ) \
|
#define SSL_DEBUG_MSG( level, args ) \
|
||||||
do { \
|
debug_print_msg_free( ssl, level, __FILE__, __LINE__, debug_fmt args );
|
||||||
if( level <= debug_threshold ) \
|
|
||||||
debug_print_msg_free( ssl, level, __FILE__, __LINE__, debug_fmt args ); \
|
|
||||||
} while( 0 )
|
|
||||||
|
|
||||||
#define SSL_DEBUG_RET( level, text, ret ) \
|
#define SSL_DEBUG_RET( level, text, ret ) \
|
||||||
debug_print_ret( ssl, level, __FILE__, __LINE__, text, ret );
|
debug_print_ret( ssl, level, __FILE__, __LINE__, text, ret );
|
||||||
|
@ -150,8 +147,6 @@ void debug_print_crt( const ssl_context *ssl, int level,
|
||||||
const char *text, const x509_crt *crt );
|
const char *text, const x509_crt *crt );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int debug_threshold;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
#define DEBUG_BUF_SIZE 512
|
#define DEBUG_BUF_SIZE 512
|
||||||
|
|
||||||
static int debug_log_mode = POLARSSL_DEBUG_DFL_MODE;
|
static int debug_log_mode = POLARSSL_DEBUG_DFL_MODE;
|
||||||
int debug_threshold = 0;
|
static int debug_threshold = 0;
|
||||||
|
|
||||||
void debug_set_log_mode( int log_mode )
|
void debug_set_log_mode( int log_mode )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue