summaryrefslogtreecommitdiffstats
path: root/common/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/debug.c')
-rw-r--r--common/debug.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/common/debug.c b/common/debug.c
index acca456..a1c336b 100644
--- a/common/debug.c
+++ b/common/debug.c
@@ -66,13 +66,10 @@ static void debug_print_line(const char *func, const char *file, int line, const
/* trim ending newlines */
/* print header */
- printf ("%s: ", header);
+ fprintf(stderr, "%s: ", header);
/* print actual debug content */
- printf ("%s\n", buffer);
-
- /* flush this output, as we need to debug */
- fflush (stdout);
+ fprintf(stderr, "%s\n", buffer);
free (header);
}