From 4a0b7fa9b88dc980f6e96a1cfd0fd04ca22eddb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkki=20Sepp=C3=A4l=C3=A4?= Date: Fri, 2 Apr 2021 11:32:06 +0300 Subject: [PATCH] pw-dot: send diagnostic messages to stderr, not stdout This will help when using stdout for other purposes in the future (e.g. next commit). --- src/tools/pw-dot.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tools/pw-dot.c b/src/tools/pw-dot.c index d5a63fa82..9371ba075 100644 --- a/src/tools/pw-dot.c +++ b/src/tools/pw-dot.c @@ -792,23 +792,23 @@ int main(int argc, char *argv[]) return 0; case 'a' : data.show_all = true; - fprintf(stdout, "all option enabled\n"); + fprintf(stderr, "all option enabled\n"); break; case 's' : data.show_smart = true; - fprintf(stdout, "smart option enabled\n"); + fprintf(stderr, "smart option enabled\n"); break; case 'd' : data.show_detail = true; - fprintf(stdout, "detail option enabled\n"); + fprintf(stderr, "detail option enabled\n"); break; case 'r' : opt_remote = optarg; - fprintf(stdout, "set remote to %s\n", opt_remote); + fprintf(stderr, "set remote to %s\n", opt_remote); break; case 'o' : dot_path = optarg; - fprintf(stdout, "set output file %s\n", dot_path); + fprintf(stderr, "set output file %s\n", dot_path); break; default: show_help(argv[0]);