diff --git a/library/pkcs5.c b/library/pkcs5.c index 44af9869b..e28d5a847 100644 --- a/library/pkcs5.c +++ b/library/pkcs5.c @@ -391,7 +391,8 @@ int mbedtls_pkcs5_self_test( int verbose ) mbedtls_printf( "passed\n" ); } - mbedtls_printf( "\n" ); + if( verbose != 0 ) + mbedtls_printf( "\n" ); exit: mbedtls_md_free( &sha1_ctx ); diff --git a/library/ripemd160.c b/library/ripemd160.c index a55cc3eb4..cdb0a63c0 100644 --- a/library/ripemd160.c +++ b/library/ripemd160.c @@ -456,6 +456,9 @@ int mbedtls_ripemd160_self_test( int verbose ) mbedtls_printf( "passed\n" ); } + if( verbose != 0 ) + mbedtls_printf( "\n" ); + return( 0 ); }