From bbf4b59f074d716c6e2e7a4d529afd14b5339bb1 Mon Sep 17 00:00:00 2001 From: Ron Eldor Date: Sun, 20 Aug 2017 16:24:33 +0300 Subject: [PATCH] Backport 1.3:Remove duplicated def. of PRINT_ERROR Backport of #1036 to mbed TLS1.3 branch. Remove duplicated 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 00abe52b7..d5eceefcb 100644 --- a/programs/test/benchmark.c +++ b/programs/test/benchmark.c @@ -135,15 +135,6 @@ do { \ ( hardclock() - tsc ) / ( jj * BUFSIZE ) ); \ } while( 0 ) -#if defined(POLARSSL_ERROR_C) -#define PRINT_ERROR \ - polarssl_strerror( ret, ( char * )tmp, sizeof( tmp ) ); \ - polarssl_printf( "FAILED: %s\n", tmp ); -#else -#define PRINT_ERROR \ - polarssl_printf( "FAILED: -0x%04x\n", -ret ); -#endif - #if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C) && defined(POLARSSL_MEMORY_DEBUG) #define MEMORY_MEASURE_INIT \