From: Laurent Mazet Date: Sat, 25 Jan 2025 08:16:12 +0000 (+0100) Subject: all debug messages sent to stderr X-Git-Tag: v1.0~1 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=8425e8b160d4affc825d6a274214120e72b178d4;p=fm.git all debug messages sent to stderr --- diff --git a/function.c b/function.c index 8a2feb8..927a0cd 100644 --- a/function.c +++ b/function.c @@ -680,7 +680,7 @@ char *loadfile (char *name, int *length) int status = -1; char *buffer = NULL; - VERBOSE (DEBUG, fprintf (stdout, "open file: %s\n", name)); + VERBOSE (DEBUG, fprintf (stderr, "open file: %s\n", name)); FILE *fd = fopen (name, "rb"); if (fd != NULL) { buffer = _readstream (fd, length); @@ -725,7 +725,7 @@ char **splitlines (char *buffer, int max) } else { free (line); } - VERBOSE (DEBUG, fprintf (stdout, "split lines: %d\n", n)); + VERBOSE (DEBUG, fprintf (stderr, "split lines: %d\n", n)); return lines; }