cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: known problem with write progress callback?

From: Max L. Eidswick <max_at_eidswick.com>
Date: Wed, 30 Jan 2008 09:13:13 -0700

From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of Brian Dessent
Sent: Wednesday, January 30, 2008 7:20 AM
To: libcurl development
Subject: Re: known problem with write progress callback?

"Max L. Eidswick" wrote:

> printf (
> "\rCall count: %d, dltotal: %ld, dlnow: %ld, ultotal: %ld,"
> "ulnow: %ld",
> ++ulCallCount, dltotal, dlnow, ultotal, ulnow ) ;

You can't use %ld to print a double.

Brian

        printf (
                "\rcall#%d, dltotal: %ld, dlnow: %ld, ultotal: %ld,"
                "ulnow: %ld",
                ++ulCallCount,
                (ULONG)dltotal,
                (ULONG)dlnow,
                (ULONG)ultotal,
                (ULONG)ulnow
                        ) ;

Thanks, that was dumb.

Max
Received on 2008-01-30