]> granicus.if.org Git - curl/commitdiff
conncache: Fixed specifiers in infof() for long and size_t variables
authorSteve Holme <steve_holme@hotmail.com>
Wed, 19 Nov 2014 20:04:21 +0000 (20:04 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 19 Nov 2014 20:04:21 +0000 (20:04 +0000)
lib/conncache.c

index d07718e83711af2468ecc83f7a44699d618e8b32..fcfb1501506538eec9a46b74e23a91be43816c13 100644 (file)
@@ -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));
     }
   }
 }