summaryrefslogtreecommitdiffstats
path: root/sys-utils
diff options
context:
space:
mode:
authorKarel Zak2017-06-26 14:09:53 +0200
committerKarel Zak2017-06-26 14:09:53 +0200
commitc3a4cfc5795da0a5f7eb2753aef3f543d12c8341 (patch)
tree301da946ab6604b0d5220f45389633e14490211e /sys-utils
parentMerge branch '170622' of github.com:jwpi/util-linux (diff)
downloadkernel-qcow2-util-linux-c3a4cfc5795da0a5f7eb2753aef3f543d12c8341.tar.gz
kernel-qcow2-util-linux-c3a4cfc5795da0a5f7eb2753aef3f543d12c8341.tar.xz
kernel-qcow2-util-linux-c3a4cfc5795da0a5f7eb2753aef3f543d12c8341.zip
misc: consolidate usage() "Available columns"
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils')
-rw-r--r--sys-utils/losetup.c2
-rw-r--r--sys-utils/lsns.c3
-rw-r--r--sys-utils/prlimit.c3
-rw-r--r--sys-utils/swapon.c2
-rw-r--r--sys-utils/zramctl.c2
5 files changed, 5 insertions, 7 deletions
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c
index 8ed9a1e4b..9ff547edb 100644
--- a/sys-utils/losetup.c
+++ b/sys-utils/losetup.c
@@ -421,7 +421,7 @@ static void usage(FILE *out)
fputs(USAGE_HELP, out);
fputs(USAGE_VERSION, out);
- fputs(_("\nAvailable --output columns:\n"), out);
+ fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %12s %s\n", infos[i].name, _(infos[i].help));
diff --git a/sys-utils/lsns.c b/sys-utils/lsns.c
index ecb0d8969..05d3ec620 100644
--- a/sys-utils/lsns.c
+++ b/sys-utils/lsns.c
@@ -629,8 +629,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
fputs(USAGE_HELP, out);
fputs(USAGE_VERSION, out);
- fputs(_("\nAvailable columns (for --output):\n"), out);
-
+ fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));
diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c
index afd19281b..302103f8b 100644
--- a/sys-utils/prlimit.c
+++ b/sys-utils/prlimit.c
@@ -193,8 +193,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
" -y, --rttime CPU time in microseconds a process scheduled\n"
" under real-time scheduling\n"), out);
- fputs(_("\nAvailable columns (for --output):\n"), out);
-
+ fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index 6bd057dd2..a46633b16 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -824,7 +824,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
" pages : freed pages are discarded before they are reused\n"
"If no policy is selected, both discard types are enabled (default).\n"), out);
- fputs(_("\nAvailable columns (for --show):\n"), out);
+ fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %-5s %s\n", infos[i].name, _(infos[i].help));
diff --git a/sys-utils/zramctl.c b/sys-utils/zramctl.c
index 7286d8877..7b001fe5d 100644
--- a/sys-utils/zramctl.c
+++ b/sys-utils/zramctl.c
@@ -545,7 +545,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
fputs(USAGE_HELP, out);
fputs(USAGE_VERSION, out);
- fputs(_("\nAvailable columns (for --output):\n"), out);
+ fputs(USAGE_COLUMNS, out);
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));