From: Dan Fandrich Date: Tue, 4 Jun 2024 05:19:14 +0000 (-0700) Subject: tests: don't log buffer length in throwing away message X-Git-Tag: curl-8_9_0~311 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a7bb40dead1a8269d16bd311b6fef8d75f2936c;p=thirdparty%2Fcurl.git tests: don't log buffer length in throwing away message It's not available at that point, and it will be written in the non-error case right afterward. --- diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 0e31dfcd4d..eb9d8e8697 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -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;