Use negative-hex format for error codes in ssl_client2/ssl_server2

This commit is contained in:
Hanno Becker 2019-05-23 16:58:22 +01:00
parent 1125952107
commit d5eed4258a
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}
}

View file

@ -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;
}
}