From 8cd8b24ffbf3bf4bc802b540a990368af8043e09 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Thu, 15 Sep 2016 11:55:00 +0000 Subject: [PATCH] MbedTLS: Make error string printing prettier. --- libratbox/src/mbedtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libratbox/src/mbedtls.c b/libratbox/src/mbedtls.c index acd4ae1b..0e69a014 100644 --- a/libratbox/src/mbedtls.c +++ b/libratbox/src/mbedtls.c @@ -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