wolfSSL shutdown_connection(): Shorten an error message
authorFabian Keil <fk@fabiankeil.de>
Tue, 9 Apr 2024 09:47:08 +0000 (11:47 +0200)
committerFabian Keil <fk@fabiankeil.de>
Thu, 10 Oct 2024 04:49:05 +0000 (06:49 +0200)
... to not include the return code which is always -1.

wolfssl.c

index 78880be..eade5f6 100644 (file)
--- 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);