[BusyBox-cvs] svn commit: trunk/busybox/applets
vapier at busybox.net
vapier at busybox.net
Fri Apr 22 02:19:01 UTC 2005
Author: vapier
Date: 2005-04-21 20:19:01 -0600 (Thu, 21 Apr 2005)
New Revision: 10150
Log:
output busybox help to stdout, not stderr
Modified:
trunk/busybox/applets/busybox.c
Changeset:
Modified: trunk/busybox/applets/busybox.c
===================================================================
--- trunk/busybox/applets/busybox.c 2005-04-21 23:29:24 UTC (rev 10149)
+++ trunk/busybox/applets/busybox.c 2005-04-22 02:19:01 UTC (rev 10150)
@@ -144,25 +144,25 @@
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);
}
More information about the busybox-cvs
mailing list