mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
conncache: Fixed specifiers in infof() for long and size_t variables
This commit is contained in:
parent
64291e989e
commit
34cb17b930
@ -152,9 +152,9 @@ CURLcode Curl_conncache_add_conn(struct conncache *connc,
|
|||||||
conn->connection_id = connc->next_connection_id++;
|
conn->connection_id = connc->next_connection_id++;
|
||||||
connc->num_connections++;
|
connc->num_connections++;
|
||||||
|
|
||||||
DEBUGF(infof(conn->data, "Added connection %d. "
|
DEBUGF(infof(conn->data, "Added connection %ld. "
|
||||||
"The cache now contains %d members\n",
|
"The cache now contains %" CURL_FORMAT_CURL_OFF_TU " members\n",
|
||||||
conn->connection_id, connc->num_connections));
|
conn->connection_id, (curl_off_t) connc->num_connections));
|
||||||
|
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
}
|
}
|
||||||
@ -175,8 +175,9 @@ void Curl_conncache_remove_conn(struct conncache *connc,
|
|||||||
if(connc) {
|
if(connc) {
|
||||||
connc->num_connections--;
|
connc->num_connections--;
|
||||||
|
|
||||||
DEBUGF(infof(conn->data, "The cache now contains %d members\n",
|
DEBUGF(infof(conn->data, "The cache now contains %"
|
||||||
connc->num_connections));
|
CURL_FORMAT_CURL_OFF_TU " members\n",
|
||||||
|
(curl_off_t) connc->num_connections));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user