From d5eed4258a1ec1c6ff3c7cafdd87b9d5c1438688 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Thu, 23 May 2019 16:58:22 +0100 Subject: [PATCH] Use negative-hex format for error codes in ssl_client2/ssl_server2 --- programs/ssl/ssl_client2.c | 4 ++-- programs/ssl/ssl_server2.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index c9e3864e2..1cd2f7375 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -1879,8 +1879,8 @@ int main( int argc, char *argv[] ) if( ret != 0 ) { - mbedtls_printf( " failed\n ! mbedtls_ssl_conf_cid_len returned %d\n\n", - ret ); + mbedtls_printf( " failed\n ! mbedtls_ssl_conf_cid_len returned -%#04x\n\n", + -ret ); goto exit; } } diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index aa7290bf8..178009a84 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -2735,8 +2735,8 @@ int main( int argc, char *argv[] ) if( ret != 0 ) { - mbedtls_printf( " failed\n ! mbedtls_ssl_conf_cid_len returned %d\n\n", - ret ); + mbedtls_printf( " failed\n ! mbedtls_ssl_conf_cid_len returned -%#04x\n\n", + -ret ); goto exit; } }