]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
easy: fix debug ev poll builds
authorGabriel Marin <gabrielmarindev@gmail.com>
Sat, 13 Dec 2025 21:09:04 +0000 (22:09 +0100)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 15 Dec 2025 00:03:54 +0000 (19:03 -0500)
Prior to this change the wrong variable name was used for one of the
debug messages.

Closes https://github.com/curl/curl/pull/19963

lib/easy.c

index bdda114850adde3410a6369a843938a701d22e32..138462af877188793f64504d3f7cde6544fca263 100644 (file)
@@ -652,7 +652,7 @@ static CURLcode wait_or_timeout(struct Curl_multi *multi, struct events *ev)
         if(spent_ms > 0) {
 #if DEBUG_EV_POLL
         curl_mfprintf(stderr, "poll timeout %ldms not updated, decrease by "
-                      "time spent %ldms\n", ev->ms, (long)timediff);
+                      "time spent %ldms\n", ev->ms, (long)spent_ms);
 #endif
           if(spent_ms > ev->ms)
             ev->ms = 0;