MbedTLS: Make error string printing prettier.
This commit is contained in:
parent
db12df5c16
commit
8cd8b24ffb
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ rb_ssl_strerror(int err)
|
|||
#ifdef MBEDTLS_ERROR_C
|
||||
char mbed_errbuf[512];
|
||||
mbedtls_strerror(err, mbed_errbuf, sizeof mbed_errbuf);
|
||||
(void) rb_snprintf(errbuf, sizeof errbuf, "(-0x%x) %s", -err, mbed_errbuf);
|
||||
(void) rb_snprintf(errbuf, sizeof errbuf, "-0x%x: %s", -err, mbed_errbuf);
|
||||
#else
|
||||
(void) rb_snprintf(errbuf, sizeof errbuf, "-0x%x", -err);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue