diff --git a/programs/x509/load_roots.c b/programs/x509/load_roots.c index 040ef296e..ba398f9b3 100644 --- a/programs/x509/load_roots.c +++ b/programs/x509/load_roots.c @@ -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; } }