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
66 /* trim ending newlines */ 66 /* trim ending newlines */
67 67
68 /* print header */ 68 /* print header */
69 printf ("%s: ", header); 69 fprintf(stderr, "%s: ", header);
70 70
71 /* print actual debug content */ 71 /* print actual debug content */
72 printf ("%s\n", buffer); 72 fprintf(stderr, "%s\n", buffer);
73
74 /* flush this output, as we need to debug */
75 fflush (stdout);
76 73
77 free (header); 74 free (header);
78} 75}