summaryrefslogtreecommitdiffstats
path: root/sys-utils
diff options
context:
space:
mode:
authorKarel Zak2017-08-31 10:31:21 +0200
committerKarel Zak2017-08-31 10:31:21 +0200
commitfcc3efb40e5b133a54ca8551a6d001ba43c06790 (patch)
treeeba5c1841444814f4787f71fabd635ee298d54c6 /sys-utils
parentMerge branch 'rfkill' of git://github.com/kerolasa/lelux-utiliteetit into rfkill (diff)
downloadkernel-qcow2-util-linux-fcc3efb40e5b133a54ca8551a6d001ba43c06790.tar.gz
kernel-qcow2-util-linux-fcc3efb40e5b133a54ca8551a6d001ba43c06790.tar.xz
kernel-qcow2-util-linux-fcc3efb40e5b133a54ca8551a6d001ba43c06790.zip
rfkill: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils')
-rw-r--r--sys-utils/rfkill.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys-utils/rfkill.c b/sys-utils/rfkill.c
index 08002b44f..7a32c70b2 100644
--- a/sys-utils/rfkill.c
+++ b/sys-utils/rfkill.c
@@ -454,15 +454,14 @@ static void __attribute__((__noreturn__)) usage(void)
fputs(_(" -r, --raw use the raw output format\n"), stdout);
fputs(USAGE_SEPARATOR, stdout);
- print_usage_help_options(24);
+ printf(USAGE_HELP_OPTIONS(24));
- fputs(USAGE_SEPARATOR, stdout);
- fputs(_("Available columns:\n"), stdout);
+ fputs(USAGE_COLUMNS, stdout);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(stdout, " %-6s %s\n", infos[i].name, _(infos[i].help));
- fputs(USAGE_SEPARATOR, stdout);
- fputs(_("Commands:\n"), stdout);
+ fputs(USAGE_COMMANDS, stdout);
+
/*
* TRANSLATORS: command names should not be translated, explaining
* them as additional field after identifer is fine, for example