mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-11 17:32:34 +08:00
Remove the mbedtls_printf and FAIL macros
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com>
This commit is contained in:
parent
9a9609ee06
commit
5bbbb5ed28
@ -19,13 +19,6 @@
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_PLATFORM_C)
|
|
||||||
#include "mbedtls/platform.h"
|
|
||||||
#else
|
|
||||||
#include <stdio.h>
|
|
||||||
#define mbedtls_printf printf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(MBEDTLS_TIMING_C)
|
#if defined(MBEDTLS_TIMING_C)
|
||||||
|
|
||||||
#include "mbedtls/timing.h"
|
#include "mbedtls/timing.h"
|
||||||
@ -149,22 +142,4 @@ int mbedtls_timing_get_delay( void *data )
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif /* !MBEDTLS_TIMING_ALT */
|
#endif /* !MBEDTLS_TIMING_ALT */
|
||||||
|
|
||||||
#if defined(MBEDTLS_SELF_TEST)
|
|
||||||
|
|
||||||
#define FAIL do \
|
|
||||||
{ \
|
|
||||||
if( verbose != 0 ) \
|
|
||||||
{ \
|
|
||||||
mbedtls_printf( "failed at line %d\n", __LINE__ ); \
|
|
||||||
mbedtls_printf( " cycles=%lu ratio=%lu millisecs=%lu secs=%lu hardfail=%d a=%lu b=%lu\n", \
|
|
||||||
cycles, ratio, millisecs, secs, hardfail, \
|
|
||||||
(unsigned long) a, (unsigned long) b ); \
|
|
||||||
print_timers( &hires, &ctx ); \
|
|
||||||
} \
|
|
||||||
return( 1 ); \
|
|
||||||
} while( 0 )
|
|
||||||
|
|
||||||
#endif /* MBEDTLS_SELF_TEST */
|
|
||||||
|
|
||||||
#endif /* MBEDTLS_TIMING_C */
|
#endif /* MBEDTLS_TIMING_C */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user