mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
- print error string in useful format
This commit is contained in:
@@ -478,7 +478,7 @@ exit:
|
|||||||
{
|
{
|
||||||
char error_buf[100];
|
char error_buf[100];
|
||||||
error_strerror( ret, error_buf, 100 );
|
error_strerror( ret, error_buf, 100 );
|
||||||
printf("Last error was: %d - %s\n\n", ret, error_buf );
|
printf("Last error was: -0x%X - %s\n\n", -ret, error_buf );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user