cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH 1/7] Comment and debug output fixes.

From: m brandenberg <mcbinc_at_panix.com>
Date: Sat, 8 Nov 2014 18:29:33 -0500 (EST)

On Thu, 6 Nov 2014, Carlo Wood wrote:

> diff --git a/lib/conncache.c b/lib/conncache.c
> index 9522aeb..d07718e 100644
> --- a/lib/conncache.c
> +++ b/lib/conncache.c
> @@ -152,6 +152,10 @@ 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));
> +
> return CURLE_OK;
> }

'connection_id' is a 'long', not an 'int', needs a
'%ld' format specifier.

--
Monty Brandenberg, Software Engineer                               MCB, Inc.
mcbinc_at_panix.com                                             P.O. Box 425292
mcbinc_at_pobox.com                                   Cambridge, MA  02142-0006
617.864.6907
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-11-09