summaryrefslogtreecommitdiff
path: root/lib/conncache.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-11-19 20:04:21 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-11-19 20:04:21 +0000
commit34cb17b9301854b12a79b4025f1e0a97d2896105 (patch)
treee13244530a535fd39d8abea68ef43e1e2d17cb7d /lib/conncache.c
parent64291e989ef3a8cdcfaf5b43b55ff8ce6e23fd18 (diff)
downloadcurl-34cb17b9301854b12a79b4025f1e0a97d2896105.tar.gz
conncache: Fixed specifiers in infof() for long and size_t variables
Diffstat (limited to 'lib/conncache.c')
-rw-r--r--lib/conncache.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/conncache.c b/lib/conncache.c
index d07718e83..fcfb15015 100644
--- a/lib/conncache.c
+++ b/lib/conncache.c
@@ -152,9 +152,9 @@ CURLcode Curl_conncache_add_conn(struct conncache *connc,
conn->connection_id = connc->next_connection_id++;
connc->num_connections++;
- DEBUGF(infof(conn->data, "Added connection %d. "
- "The cache now contains %d members\n",
- conn->connection_id, connc->num_connections));
+ DEBUGF(infof(conn->data, "Added connection %ld. "
+ "The cache now contains %" CURL_FORMAT_CURL_OFF_TU " members\n",
+ conn->connection_id, (curl_off_t) connc->num_connections));
return CURLE_OK;
}
@@ -175,8 +175,9 @@ void Curl_conncache_remove_conn(struct conncache *connc,
if(connc) {
connc->num_connections--;
- DEBUGF(infof(conn->data, "The cache now contains %d members\n",
- connc->num_connections));
+ DEBUGF(infof(conn->data, "The cache now contains %"
+ CURL_FORMAT_CURL_OFF_TU " members\n",
+ (curl_off_t) connc->num_connections));
}
}
}