all debug messages sent to stderr
authorLaurent Mazet <mazet@softndesign.org>
Sat, 25 Jan 2025 08:16:12 +0000 (09:16 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Sat, 25 Jan 2025 08:16:12 +0000 (09:16 +0100)
function.c

index 8a2feb813ab020688ad909a3c166dd66ee3b1be2..927a0cd0610c3a02823bcca994de79f9812c61dc 100644 (file)
@@ -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;
 }