From 446977639252f0ff5ee6d28d187e9500fe990e7b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 16 Aug 2011 12:51:32 +0200 Subject: [PATCH] uuidgen: cleanup usage() Signed-off-by: Karel Zak --- misc-utils/uuidgen.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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); } -- 2.47.3