From: Daniel Stenberg Date: Sat, 20 Dec 2008 21:48:34 +0000 (+0000) Subject: make the debug/helper function output to stderr as that makes it play nicer X-Git-Tag: curl-7_19_3~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e16509d5cfe38edfbc150c0ad530e32a71fa6c8e;p=thirdparty%2Fcurl.git make the debug/helper function output to stderr as that makes it play nicer in combination with infof() calls --- diff --git a/lib/splay.c b/lib/splay.c index de49af0d9c..c855c4c056 100644 --- a/lib/splay.c +++ b/lib/splay.c @@ -345,13 +345,13 @@ void Curl_splayprint(struct Curl_tree * t, int d, char output) Curl_splayprint(t->larger, d+1, output); for (i=0; ikey.tv_usec, i); + fprintf(stderr, "%ld[%d]", (long)t->key.tv_usec, i); #else - printf("%ld.%ld[%d]", (long)t->key.tv_sec, (long)t->key.tv_usec, i); + fprintf(stderr, "%ld.%ld[%d]", (long)t->key.tv_sec, (long)t->key.tv_usec, i); #endif } @@ -360,9 +360,9 @@ void Curl_splayprint(struct Curl_tree * t, int d, char output) if(output) { if(count) - printf(" [%d more]\n", count); + fprintf(stderr, " [%d more]\n", count); else - printf("\n"); + fprintf(stderr, "\n"); } Curl_splayprint(t->smaller, d+1, output);