Rm use of non-standard __func__ in example programs

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2022-01-17 11:58:54 +01:00
parent 9efbf53f0e
commit 763641a3f5

View file

@ -90,7 +90,7 @@ void print_out( const char *title, unsigned char *out, size_t len )
do { \
ret = code; \
if( ret != 0 ) { \
printf( "%s:%03d: ret = -0x%04x\n", __func__, __LINE__, (unsigned) -ret ); \
printf( "%03d: ret = -0x%04x\n", __LINE__, (unsigned) -ret ); \
goto exit; \
} \
} while( 0 )
@ -210,7 +210,7 @@ exit:
do { \
status = code; \
if( status != PSA_SUCCESS ) { \
printf( "%s:%03d: status = %d\n", __func__, __LINE__, status ); \
printf( "%03d: status = %d\n", __LINE__, status ); \
goto exit; \
} \
} while( 0 )