diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-06-07 11:02:02 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-06-08 14:20:28 +0300 |
commit | d48fb7c2a92957ec306c6bc9dfb6f13330b81cbb (patch) | |
tree | c8ecb619372bb6e577bf611b4a9a33719a86aeba /ubi-utils/src/ubiattach.c | |
parent | 74bef2b8693c7e4f78e1ef742933b7231e49c7ad (diff) |
ubi-utils: send help/version info to stdout
Usage/version information should go to stdout when it is expected behavior
(i.e. the user requested it explicitly). This info should go to stderr
only when the usage info is being shown as a result of incorrect options.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src/ubiattach.c')
-rw-r--r-- | ubi-utils/src/ubiattach.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ubi-utils/src/ubiattach.c b/ubi-utils/src/ubiattach.c index 9297b56..4f18e99 100644 --- a/ubi-utils/src/ubiattach.c +++ b/ubi-utils/src/ubiattach.c @@ -123,9 +123,9 @@ static int parse_opt(int argc, char * const argv[]) break; case 'h': - fprintf(stderr, "%s\n\n", doc); - fprintf(stderr, "%s\n\n", usage); - fprintf(stderr, "%s\n", optionsstr); + printf("%s\n\n", doc); + printf("%s\n\n", usage); + printf("%s\n", optionsstr); exit(EXIT_SUCCESS); case 'V': |