lib: fix 'ns' -> 'us' in trace messages

Closes #22200
This commit is contained in:
Viktor Szakats 2026-06-26 23:40:24 +02:00
parent 996696621f
commit a62e08c5eb
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -345,7 +345,7 @@ void Curl_trc_easy_timers(struct Curl_easy *data)
while(e) {
struct time_node *n = Curl_node_elem(e);
e = Curl_node_next(e);
CURL_TRC_TIMER(data, n->eid, "expires in %" FMT_TIMEDIFF_T "ns",
CURL_TRC_TIMER(data, n->eid, "expires in %" FMT_TIMEDIFF_T "us",
curlx_ptimediff_us(&n->time, pnow));
}
}

View file

@ -3704,7 +3704,7 @@ static CURLMcode multi_addtimeout(struct Curl_easy *data,
this is the first timeout on the list */
Curl_llist_insert_next(timeoutlist, prev, node, &node->list);
CURL_TRC_TIMER(data, eid, "set for %" FMT_TIMEDIFF_T "ns",
CURL_TRC_TIMER(data, eid, "set for %" FMT_TIMEDIFF_T "us",
curlx_ptimediff_us(&node->time, Curl_pgrs_now(data)));
return CURLM_OK;
}

View file

@ -337,7 +337,7 @@ void Curl_pgrsTimeWas(struct Curl_easy *data, timerid timer,
if(us < 1)
us = 1; /* make sure at least one microsecond passed */
*delta += us;
CURL_TRC_M(data, "[%s] added %" FMT_TIMEDIFF_T "ns",
CURL_TRC_M(data, "[%s] added %" FMT_TIMEDIFF_T "us",
pgrs_timer_name(timer), us);
}
else