From: Karel Zak Date: Tue, 16 Aug 2011 11:28:02 +0000 (+0200) Subject: lscpu: cleanup usage() X-Git-Tag: v2.20-rc2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f1ec5e8d4e69a655c5d5a956629ef7aec3a7ecd;p=thirdparty%2Futil-linux.git lscpu: cleanup usage() Signed-off-by: Karel Zak --- diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 50daf3c4c5..2778c41b2a 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -1033,15 +1033,15 @@ print_readable(struct lscpu_desc *desc, int hex) static void __attribute__((__noreturn__)) usage(FILE *out) { - fprintf(out, _( - "\nUsage:\n" - " %s [options]\n"), program_invocation_short_name); - - puts(_( "\nOptions:\n" - " -h, --help print this help\n" - " -p, --parse[=LIST] print out a parsable instead of a readable format\n" - " -s, --sysroot DIR use directory DIR as system root\n" - " -x, --hex print hexadecimal masks rather than lists of CPUs\n")); + fputs(_("\nUsage:\n"), out); + fprintf(out, + _(" %s [options]\n"), program_invocation_short_name); + + fputs(_("\nOptions:\n"), out); + fputs(_(" -h, --help print this help\n" + " -p, --parse print out a parsable instead of a readable format\n" + " -s, --sysroot use directory DIR as system root\n" + " -x, --hex print hexadecimal masks rather than lists of CPUs\n\n"), out); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); }