diff options
author | Mike Frysinger | 2005-04-22 02:19:01 +0000 |
---|---|---|
committer | Mike Frysinger | 2005-04-22 02:19:01 +0000 |
commit | 2c12d435e5ccd402f6210827df0b2038093fbcee (patch) | |
tree | 55823772b82f31a8d047a76a80e467619a4f0655 /applets | |
parent | 95d3c4503fa8c4f4289b81f50f52657e112e0234 (diff) | |
download | busybox-2c12d435e5ccd402f6210827df0b2038093fbcee.zip busybox-2c12d435e5ccd402f6210827df0b2038093fbcee.tar.gz |
output busybox help to stdout, not stderr
Diffstat (limited to 'applets')
-rw-r--r-- | applets/busybox.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index dbb5e17..ee74b4c 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -144,25 +144,25 @@ int busybox_main(int argc, char **argv) output_width -= 20; #endif - fprintf(stderr, "%s\n\n" - "Usage: busybox [function] [arguments]...\n" - " or: [function] [arguments]...\n\n" - "\tBusyBox is a multi-call binary that combines many common Unix\n" - "\tutilities into a single executable. Most people will create a\n" - "\tlink to busybox for each function they wish to use, and BusyBox\n" - "\twill act like whatever it was invoked as.\n" - "\nCurrently defined functions:\n", bb_msg_full_version); + printf("%s\n\n" + "Usage: busybox [function] [arguments]...\n" + " or: [function] [arguments]...\n\n" + "\tBusyBox is a multi-call binary that combines many common Unix\n" + "\tutilities into a single executable. Most people will create a\n" + "\tlink to busybox for each function they wish to use and BusyBox\n" + "\twill act like whatever it was invoked as!\n" + "\nCurrently defined functions:\n", bb_msg_full_version); while (a->name != 0) { col += - fprintf(stderr, "%s%s", ((col == 0) ? "\t" : ", "), - (a++)->name); + printf("%s%s", ((col == 0) ? "\t" : ", "), + (a++)->name); if (col > output_width && a->name != 0) { - fprintf(stderr, ",\n"); + printf(",\n"); col = 0; } } - fprintf(stderr, "\n\n"); + printf("\n\n"); exit(0); } |