diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 2abd6661e..d3a3a03dc 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -646,8 +646,8 @@ static forceinline void ssl_sock_dump_errors(struct connection *conn) ret = ERR_get_error(); if (ret == 0) return; - fprintf(stderr, "fd[%04x] OpenSSL error[0x%lx] %s: %s\n", - (unsigned short)conn->handle.fd, ret, + fprintf(stderr, "fd[%#x] OpenSSL error[0x%lx] %s: %s\n", + conn->handle.fd, ret, ERR_func_error_string(ret), ERR_reason_error_string(ret)); } }