From 85f3165c6a0bdfb917a99075afb9a1df5a8e9bb9 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 3 Aug 2021 13:15:04 +0200 Subject: [PATCH] Fix printf format signedness error Signed-off-by: Gilles Peskine --- programs/x509/load_roots.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }