]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: don't log buffer length in throwing away message
authorDan Fandrich <dan@coneharvesters.com>
Tue, 4 Jun 2024 05:19:14 +0000 (22:19 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 4 Jun 2024 05:21:09 +0000 (22:21 -0700)
It's not available at that point, and it will be written in the
non-error case right afterward.

tests/server/sockfilt.c

index 0e31dfcd4dbffaa87c1917f0c3546c2956482fd8..eb9d8e86975634871aef2e0ce53ee87e433632ca 100644 (file)
@@ -921,7 +921,7 @@ static bool disc_handshake(void)
       }
       else if(!memcmp("DATA", buffer, 4)) {
         /* We must read more data to stay in sync */
-        logmsg("Throwing away %zd data bytes", buffer_len);
+        logmsg("Throwing away data bytes");
         if(!read_data_block(buffer, sizeof(buffer), &buffer_len))
           return FALSE;