easy: fix debug ev poll builds

Prior to this change the wrong variable name was used for one of the
debug messages.

Closes https://github.com/curl/curl/pull/19963
This commit is contained in:
Gabriel Marin 2025-12-13 22:09:04 +01:00 committed by Jay Satiro
parent 187e219616
commit 15de32f09d

View 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;