Fix printf format signedness error

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2021-08-03 13:15:04 +02:00
parent 3b1f4c0d7e
commit 85f3165c6a

View file

@ -119,7 +119,8 @@ int read_certificates( const char *const *filenames )
if( ret != 0 )
{
mbedtls_strerror( ret, error_message, sizeof( error_message ) );
printf( "\n%s: -0x%04x (%s)\n", *cur, -ret, error_message );
printf( "\n%s: -0x%04x (%s)\n",
*cur, (unsigned) -ret, error_message );
goto exit;
}
}