From 8425e8b160d4affc825d6a274214120e72b178d4 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sat, 25 Jan 2025 09:16:12 +0100 Subject: [PATCH] all debug messages sent to stderr --- function.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2