From: Karel Zak Date: Tue, 16 Aug 2011 10:51:32 +0000 (+0200) Subject: uuidgen: cleanup usage() X-Git-Tag: v2.20-rc2~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=446977639252f0ff5ee6d28d187e9500fe990e7b;p=thirdparty%2Futil-linux.git uuidgen: cleanup usage() Signed-off-by: Karel Zak --- diff --git a/misc-utils/uuidgen.c b/misc-utils/uuidgen.c index 5faf2f0478..2a98bc8be8 100644 --- a/misc-utils/uuidgen.c +++ b/misc-utils/uuidgen.c @@ -30,14 +30,15 @@ extern int optind; static void __attribute__ ((__noreturn__)) usage(FILE * out) { - fprintf(out, _("Usage: %s [options]\n"), - program_invocation_short_name); + fputs(_("\nUsage:\n"), out); + fprintf(out, + _(" %s [options]\n"), program_invocation_short_name); - fprintf(out, _("\nOptions:\n" - " -r, --random generate random-based uuid\n" - " -t, --time generate time-based uuid\n" - " -V, --version output version information and exit\n" - " -h, --help display this help and exit\n\n")); + fputs(_("\nOptions:\n"), out); + fputs(_(" -r, --random generate random-based uuid\n" + " -t, --time generate time-based uuid\n" + " -V, --version output version information and exit\n" + " -h, --help display this help and exit\n\n"), out); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); }