summaryrefslogtreecommitdiffstats
path: root/sys-utils/prlimit.c
diff options
context:
space:
mode:
authorRuediger Meier2017-06-29 15:52:16 +0200
committerRuediger Meier2017-06-29 16:54:33 +0200
commitf45f3ec34a37e2779d09625b93be5eb91174f8fc (patch)
treecba0a6875b5998436a63ac0f45fb8d98b1be47f1 /sys-utils/prlimit.c
parentblockdev: correct man page name in --help (diff)
downloadkernel-qcow2-util-linux-f45f3ec34a37e2779d09625b93be5eb91174f8fc.tar.gz
kernel-qcow2-util-linux-f45f3ec34a37e2779d09625b93be5eb91174f8fc.tar.xz
kernel-qcow2-util-linux-f45f3ec34a37e2779d09625b93be5eb91174f8fc.zip
misc: consolidate macro style USAGE_HELP_OPTIONS
changed in include/c.h and applied via sed: sed -i 's/fprintf.*\(USAGE_MAN_TAIL.*\)/printf(\1/' $(git ls-files -- "*.c") sed -i 's/print_usage_help_options\(.*\);/printf(USAGE_HELP_OPTIONS\1);/' $(git ls-files -- "*.c") Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'sys-utils/prlimit.c')
-rw-r--r--sys-utils/prlimit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c
index 37e0f9fed..e8d95822e 100644
--- a/sys-utils/prlimit.c
+++ b/sys-utils/prlimit.c
@@ -173,7 +173,7 @@ static void __attribute__((__noreturn__)) usage(void)
" --raw use the raw output format\n"
" --verbose verbose output\n"
), out);
- print_usage_help_options(24);
+ printf(USAGE_HELP_OPTIONS(24));
fputs(_("\nResources Options:\n"), out);
fputs(_(" -c, --core maximum size of core files created\n"
@@ -198,7 +198,7 @@ static void __attribute__((__noreturn__)) usage(void)
for (i = 0; i < ARRAY_SIZE(infos); i++)
fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help));
- fprintf(out, USAGE_MAN_TAIL("prlimit(1)"));
+ printf(USAGE_MAN_TAIL("prlimit(1)"));
exit(EXIT_SUCCESS);
}