From 44d2442e8d4b41ad78f54f598de4a04ec30bc076 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 11 Sep 2020 13:53:25 +0200
Subject: [PATCH] send_https_request(): Fix format specifiers in log messages

---
 jcc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/jcc.c b/jcc.c
index 2f83e92f..b53aa311 100644
--- a/jcc.c
+++ b/jcc.c
@@ -2159,14 +2159,14 @@ static int send_https_request(struct client_state *csp)
          if (csp->expected_client_content_length < flushed)
          {
             log_error(LOG_LEVEL_ERROR,
-               "Flushed %d bytes of request body while only expecting %llu",
+               "Flushed %ld bytes of request body while only expecting %llu",
                flushed, csp->expected_client_content_length);
             csp->expected_client_content_length = 0;
          }
          else
          {
             log_error(LOG_LEVEL_CONNECT,
-               "Flushed %d bytes of request body while expecting %llu",
+               "Flushed %ld bytes of request body while expecting %llu",
                flushed, csp->expected_client_content_length);
             csp->expected_client_content_length -= (unsigned)flushed;
             if (receive_and_send_encrypted_post_data(csp))
@@ -2178,7 +2178,7 @@ static int send_https_request(struct client_state *csp)
       else
       {
          log_error(LOG_LEVEL_CONNECT,
-            "Flushed %d bytes of request body", flushed);
+            "Flushed %ld bytes of request body", flushed);
       }
    }
 
-- 
2.49.0