1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Revert "Add reco_debug_level to reduce debug output"

This reverts commit a6934776c9.

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu
2022-12-06 11:05:44 +08:00
parent 12c46bd14f
commit 2c93fc1544

View File

@ -501,8 +501,6 @@ int main( void )
" debug_level=%%d default: 0 (disabled)\n" \
" build_version=%%d default: none (disabled)\n" \
" option: 1 (print build version only and stop)\n" \
" reco_debug_level=%%d default: 0 (disabled)\n" \
" level of debugging for re-connection.\n" \
" buffer_size=%%d default: 200 \n" \
" (minimum: 1)\n" \
" response_size=%%d default: about 152 (basic response)\n" \
@ -605,7 +603,6 @@ struct options
const char *server_addr; /* address on which the ssl service runs */
const char *server_port; /* port on which the ssl service runs */
int debug_level; /* level of debugging */
int reco_debug_level; /* level of debugging for re-connection. */
int nbio; /* should I/O be blocking? */
int event; /* loop or event-driven IO? level or edge triggered? */
uint32_t read_timeout; /* timeout on mbedtls_ssl_read() in milliseconds */
@ -1644,7 +1641,6 @@ int main( int argc, char *argv[] )
opt.server_addr = DFL_SERVER_ADDR;
opt.server_port = DFL_SERVER_PORT;
opt.debug_level = DFL_DEBUG_LEVEL;
opt.reco_debug_level = DFL_DEBUG_LEVEL;
opt.event = DFL_EVENT;
opt.response_size = DFL_RESPONSE_SIZE;
opt.nbio = DFL_NBIO;
@ -1772,12 +1768,6 @@ int main( int argc, char *argv[] )
goto exit;
}
}
else if( strcmp( p, "reco_debug_level" ) == 0 )
{
opt.reco_debug_level = atoi( q );
if( opt.reco_debug_level < 0 || opt.reco_debug_level > 65535 )
goto usage;
}
else if( strcmp( p, "nbio" ) == 0 )
{
opt.nbio = atoi( q );
@ -4317,11 +4307,6 @@ close_notify:
mbedtls_printf( " done\n" );
#if defined(MBEDTLS_DEBUG_C)
if( opt.reco_debug_level )
mbedtls_debug_set_threshold( opt.reco_debug_level );
#endif
goto reset;
/*