summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Romani <fromani@gmail.com>2014-07-05 18:18:13 +0200
committerSebastian Dröge <sebastian@centricular.com>2023-04-12 21:38:15 +0300
commit76d12f5fff86aada4529ce0561ae834d815672b1 (patch)
treedc2642eeb89f447131bcf9ab7eafafa3cfe3346c
parent2ab93433a97f8ab93fae71eae1ba86639437d9e1 (diff)
downloadorc-76d12f5fff86aada4529ce0561ae834d815672b1.tar.gz
orcc: send messages to stderr in generated code
In general, error/warnings should be sent to stderr to not pollute the output, so do that also for generated output. Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/30>
-rw-r--r--tools/orcc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/orcc.c b/tools/orcc.c
index 77696e9..8f1ca55 100644
--- a/tools/orcc.c
+++ b/tools/orcc.c
@@ -383,13 +383,13 @@ main (int argc, char *argv[])
fprintf(output, "\n");
fprintf(output, "static void help (const char *argv0)\n");
fprintf(output, "{\n");
- fprintf(output, " printf(\"Usage:\\n\");\n");
- fprintf(output, " printf(\" %%s [OPTION]\\n\", argv0);\n");
- fprintf(output, " printf(\"Help Options:\\n\");\n");
- fprintf(output, " printf(\" -h, --help Show help options\\n\");\n");
- fprintf(output, " printf(\"Application Options:\\n\");\n");
- fprintf(output, " printf(\" -b, --benchmark Run benchmark and show results\\n\");\n");
- fprintf(output, " printf(\" -q, --quiet Don't output anything except on failures\\n\");\n");
+ fprintf(output, " fprintf(stderr, \"Usage:\\n\");\n");
+ fprintf(output, " fprintf(stderr, \" %%s [OPTION]\\n\", argv0);\n");
+ fprintf(output, " fprintf(stderr, \"Help Options:\\n\");\n");
+ fprintf(output, " fprintf(stderr, \" -h, --help Show help options\\n\");\n");
+ fprintf(output, " fprintf(stderr, \"Application Options:\\n\");\n");
+ fprintf(output, " fprintf(stderr, \" -b, --benchmark Run benchmark and show results\\n\");\n");
+ fprintf(output, " fprintf(stderr, \" -q, --quiet Don't output anything except on failures\\n\");\n");
fprintf(output, "\n");
fprintf(output, " exit(0);\n");
fprintf(output, "}\n");