mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 08:45:50 +01:00
Backport 2.1:Remove duplicated def. of PRINT_ERROR
Backport of #1036 to mbed TLS 2.1 branch. Remove duplicate definition of PRINT_ERROR in the benchmark sample application
This commit is contained in:
parent
ad6cf99d6d
commit
3a7baf3fa7
@ -129,15 +129,6 @@ do { \
|
|||||||
( mbedtls_timing_hardclock() - tsc ) / ( jj * BUFSIZE ) ); \
|
( mbedtls_timing_hardclock() - tsc ) / ( jj * BUFSIZE ) ); \
|
||||||
} while( 0 )
|
} while( 0 )
|
||||||
|
|
||||||
#if defined(MBEDTLS_ERROR_C)
|
|
||||||
#define PRINT_ERROR \
|
|
||||||
mbedtls_strerror( ret, ( char * )tmp, sizeof( tmp ) ); \
|
|
||||||
mbedtls_printf( "FAILED: %s\n", tmp );
|
|
||||||
#else
|
|
||||||
#define PRINT_ERROR \
|
|
||||||
mbedtls_printf( "FAILED: -0x%04x\n", -ret );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) && defined(MBEDTLS_MEMORY_DEBUG)
|
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) && defined(MBEDTLS_MEMORY_DEBUG)
|
||||||
|
|
||||||
#define MEMORY_MEASURE_INIT \
|
#define MEMORY_MEASURE_INIT \
|
||||||
|
Loading…
Reference in New Issue
Block a user