summaryrefslogtreecommitdiff
path: root/lib/splay.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-12-20 21:48:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-12-20 21:48:34 +0000
commite16509d5cfe38edfbc150c0ad530e32a71fa6c8e (patch)
treedb82aad40fcad52376215fe4e0a35954dd756593 /lib/splay.c
parent19c9b7c8034498d925672bcb0a5c316250a75dc4 (diff)
downloadcurl-e16509d5cfe38edfbc150c0ad530e32a71fa6c8e.tar.gz
make the debug/helper function output to stderr as that makes it play nicer
in combination with infof() calls
Diffstat (limited to 'lib/splay.c')
-rw-r--r--lib/splay.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/splay.c b/lib/splay.c
index de49af0d9..c855c4c05 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; i<d; i++)
if(output)
- printf(" ");
+ fprintf(stderr, " ");
if(output) {
#ifdef TEST_SPLAY
- printf("%ld[%d]", (long)t->key.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);