From 4a7bb40dead1a8269d16bd311b6fef8d75f2936c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Mon, 3 Jun 2024 22:19:14 -0700 Subject: [PATCH] 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. --- tests/server/sockfilt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3