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 a64417afe6
commit 987984482d

View file

@ -115,7 +115,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;
}
}