From 2e46b5875586dd4f7f69b7f6e708d55235ce29a1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 19 Jan 2024 16:39:38 +0100 Subject: Write error messages to stderr --- src/target.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target.c b/src/target.c index cc26fd2..dbb4c63 100644 --- a/src/target.c +++ b/src/target.c @@ -28,9 +28,9 @@ void exec_target(char *name, struct bloc_parsed *bloc, FILE *file) } } - printf("available targets:\n"); + fprintf(stderr, "available targets:\n"); for (int i = 0; i < count; i++) - printf("\t%s\n", targets[i]->name); + fprintf(stderr, "\t%s\n", targets[i]->name); fatal("unknown target %s\n", name); } -- cgit v1.2.3