From 3a7baf3fa7fe2de717355eec1dea6565766e8348 Mon Sep 17 00:00:00 2001 From: Ron Eldor Date: Sun, 20 Aug 2017 16:16:39 +0300 Subject: [PATCH] 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 --- programs/test/benchmark.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c index 8ab32f677..078299319 100644 --- a/programs/test/benchmark.c +++ b/programs/test/benchmark.c @@ -129,15 +129,6 @@ do { \ ( mbedtls_timing_hardclock() - tsc ) / ( jj * BUFSIZE ) ); \ } 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) #define MEMORY_MEASURE_INIT \