Skip to content
Snippets Groups Projects
Commit e16509d5 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make the debug/helper function output to stderr as that makes it play nicer

in combination with infof() calls
parent 19c9b7c8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment