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
|
#ifdef MBEDTLS_ERROR_C
|
||||||
char mbed_errbuf[512];
|
char mbed_errbuf[512];
|
||||||
mbedtls_strerror(err, mbed_errbuf, sizeof mbed_errbuf);
|
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
|
#else
|
||||||
(void) rb_snprintf(errbuf, sizeof errbuf, "-0x%x", -err);
|
(void) rb_snprintf(errbuf, sizeof errbuf, "-0x%x", -err);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue