From fd866cf6d4c3dd0c88f62a717988db5031720e22 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 9 Apr 2024 11:47:08 +0200
Subject: [PATCH] wolfSSL shutdown_connection(): Shorten an error message

... to not include the return code which is always -1.
---
 wolfssl.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/wolfssl.c b/wolfssl.c
index 78880bec..eade5f6e 100644
--- a/wolfssl.c
+++ b/wolfssl.c
@@ -949,8 +949,7 @@ static void shutdown_connection(WOLFSSL *ssl, const char *type)
       if (WOLFSSL_SUCCESS != ret)
       {
          log_error(LOG_LEVEL_CONNECT, "Failed to shutdown %s connection "
-            "on socket %d. Attempts so far: %d, ret: %d", type, fd,
-            shutdown_attempts, ret);
+            "on socket %d. Attempts so far: %d.", type, fd, shutdown_attempts);
       }
    } while (ret == WOLFSSL_SHUTDOWN_NOT_DONE &&
       shutdown_attempts < MAX_SHUTDOWN_ATTEMPTS);
-- 
2.49.0