From 2da4918695c84afcc01231743d44e60147f885b3 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 16 Aug 2011 12:23:15 +0200 Subject: [PATCH] logger: indent usage() Signed-off-by: Karel Zak --- misc-utils/logger.c | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) 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); } -- 2.47.2