Print the collected error list to stderr isntead of stdout. This is useful
for wrapping programs that treat stdout and stderr differently.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
struct errlist *err = error_list_head;
if (err) {
- printf("Collected errors:\n");
+ fprintf(stderr, "Collected errors:\n");
/* Here we print the errors collected and free the list */
while (err != NULL) {
- printf(" * %s", err->errmsg);
+ fprintf(stderr, " * %s", err->errmsg);
err = err->next;
}
}