Silence compiler warning in example program

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2022-01-14 13:06:14 +01:00
parent 398d45985b
commit ecffd96910
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,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__, -ret ); \
printf( "%s:%03d: ret = -0x%04x\n", __func__, __LINE__, (unsigned) -ret ); \
goto exit; \
} \
} while( 0 )

View file

@ -159,7 +159,7 @@ int main(void)
printf( "MD\n" );
int ret = md();
if( ret != 0 )
printf( "ret = %d (-0x%04x)\n", ret, -ret );
printf( "ret = %d (-0x%04x)\n", ret, (unsigned) -ret );
psa_status_t status = psa_crypto_init();
if( status != PSA_SUCCESS )