mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
make the debug/helper function output to stderr as that makes it play nicer
in combination with infof() calls
This commit is contained in:
parent
19c9b7c803
commit
e16509d5cf
10
lib/splay.c
10
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);
|
Curl_splayprint(t->larger, d+1, output);
|
||||||
for (i=0; i<d; i++)
|
for (i=0; i<d; i++)
|
||||||
if(output)
|
if(output)
|
||||||
printf(" ");
|
fprintf(stderr, " ");
|
||||||
|
|
||||||
if(output) {
|
if(output) {
|
||||||
#ifdef TEST_SPLAY
|
#ifdef TEST_SPLAY
|
||||||
printf("%ld[%d]", (long)t->key.tv_usec, i);
|
fprintf(stderr, "%ld[%d]", (long)t->key.tv_usec, i);
|
||||||
#else
|
#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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -360,9 +360,9 @@ void Curl_splayprint(struct Curl_tree * t, int d, char output)
|
|||||||
|
|
||||||
if(output) {
|
if(output) {
|
||||||
if(count)
|
if(count)
|
||||||
printf(" [%d more]\n", count);
|
fprintf(stderr, " [%d more]\n", count);
|
||||||
else
|
else
|
||||||
printf("\n");
|
fprintf(stderr, "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
Curl_splayprint(t->smaller, d+1, output);
|
Curl_splayprint(t->smaller, d+1, output);
|
||||||
|
Loading…
Reference in New Issue
Block a user