From d48fb7c2a92957ec306c6bc9dfb6f13330b81cbb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 7 Jun 2011 11:02:02 -0400 Subject: 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 Signed-off-by: Artem Bityutskiy --- ubi-utils/src/ubiformat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ubi-utils/src/ubiformat.c') diff --git a/ubi-utils/src/ubiformat.c b/ubi-utils/src/ubiformat.c index 6e5cdb8..c4b944a 100644 --- a/ubi-utils/src/ubiformat.c +++ b/ubi-utils/src/ubiformat.c @@ -211,9 +211,9 @@ static int parse_opt(int argc, char * const argv[]) case 'h': case '?': - 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 ':': -- cgit v1.2.3