From: Karel Zak Date: Tue, 16 Aug 2011 10:23:15 +0000 (+0200) Subject: logger: indent usage() X-Git-Tag: v2.20-rc2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2da4918695c84afcc01231743d44e60147f885b3;p=thirdparty%2Futil-linux.git logger: indent usage() Signed-off-by: Karel Zak --- diff --git a/misc-utils/logger.c b/misc-utils/logger.c index 5ad4ae8540..a63476f62a 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -135,26 +135,22 @@ mysyslog(int fd, int logflags, int pri, char *tag, char *msg) { static void __attribute__ ((__noreturn__)) usage(FILE *out) { + fputs(_("\nUsage:\n"), out); fprintf(out, - _("\nUsage:\n" - " %s [options] [message]\n"), - program_invocation_short_name); - - fprintf(out, _( - "\nOptions:\n" - " -d, --udp use UDP (TCP is default)\n" - " -i, --id log the process ID too\n" - " -f, --file FILE log the contents of this file\n" - " -h, --help display this help text and exit\n")); - fprintf(out, _( - " -n, --server NAME write to this remote syslog server\n" - " -P, --port NUMBER use this UDP port\n" - " -p, --priority PRIO mark given message with this priority\n" - " -s, --stderr output message to standard error as well\n")); - fprintf(out, _( - " -t, --tag TAG mark every line with this tag\n" - " -u, --socket SOCKET write to this Unix socket\n" - " -V, --version output version information and exit\n\n")); + _(" %s [options] [message]\n"), program_invocation_short_name); + + fputs(_("\nOptions:\n"), out); + fputs(_(" -d, --udp use UDP (TCP is default)\n" + " -i, --id log the process ID too\n" + " -f, --file log the contents of this file\n" + " -h, --help display this help text and exit\n"), out); + fputs(_(" -n, --server write to this remote syslog server\n" + " -P, --port use this UDP port\n" + " -p, --priority mark given message with this priority\n" + " -s, --stderr output message to standard error as well\n"), out); + fputs(_(" -t, --tag mark every line with this tag\n" + " -u, --socket write to this Unix socket\n" + " -V, --version output version information and exit\n\n"), out); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); }