diff options
author | Karel Zak | 2011-08-16 13:28:02 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-16 13:28:02 +0200 |
commit | 7f1ec5e8d4e69a655c5d5a956629ef7aec3a7ecd (patch) | |
tree | 29dc3e7931fdcc0edec7d28ce81c46b38040bd50 /sys-utils/lscpu.c | |
parent | mountpoint: cleanup usage() (diff) | |
download | kernel-qcow2-util-linux-7f1ec5e8d4e69a655c5d5a956629ef7aec3a7ecd.tar.gz kernel-qcow2-util-linux-7f1ec5e8d4e69a655c5d5a956629ef7aec3a7ecd.tar.xz kernel-qcow2-util-linux-7f1ec5e8d4e69a655c5d5a956629ef7aec3a7ecd.zip |
lscpu: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r-- | sys-utils/lscpu.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 50daf3c4c..2778c41b2 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 <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\n"), out); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); } |