summaryrefslogtreecommitdiffstats
path: root/sys-utils/renice.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-16 13:20:54 +0200
committerKarel Zak2011-08-16 13:20:54 +0200
commitae1ae49e785a4f26500550700b783a6c711ffd7a (patch)
treeb32003e4e284dcd33f59bc51cc576d6543f31e4f /sys-utils/renice.c
parentunshare: cleanup usage() (diff)
downloadkernel-qcow2-util-linux-ae1ae49e785a4f26500550700b783a6c711ffd7a.tar.gz
kernel-qcow2-util-linux-ae1ae49e785a4f26500550700b783a6c711ffd7a.tar.xz
kernel-qcow2-util-linux-ae1ae49e785a4f26500550700b783a6c711ffd7a.zip
renice: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/renice.c')
-rw-r--r--sys-utils/renice.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys-utils/renice.c b/sys-utils/renice.c
index b4d96e02f..cd4cafab3 100644
--- a/sys-utils/renice.c
+++ b/sys-utils/renice.c
@@ -51,23 +51,22 @@ static int donice(int,int,int);
static void __attribute__((__noreturn__)) usage(FILE *out)
{
- fprintf(out, _(
- "\nUsage:\n"
- " %1$s [-n] <priority> [-p] <pid> [<pid> ...]\n"
+ fputs(_("\nUsage:\n"), out);
+ fprintf(out,
+ _(" %1$s [-n] <priority> [-p] <pid> [<pid> ...]\n"
" %1$s [-n] <priority> -g <pgrp> [<pgrp> ...]\n"
" %1$s [-n] <priority> -u <user> [<user> ...]\n"),
program_invocation_short_name);
- fprintf(out, _(
- "\nOptions:\n"
- " -g, --pgrp <id> interpret as process group ID\n"
+ fputs(_("\nOptions:\n"), out);
+ fputs(_(" -g, --pgrp <id> interpret as process group ID\n"
" -h, --help print help\n"
" -n, --priority <num> set the nice increment value\n"
" -p, --pid <id> force to be interpreted as process ID\n"
" -u, --user <name|id> interpret as username or user ID\n"
- " -v, --version print version\n"));
+ " -v, --version print version\n"), out);
- fprintf(out, _("\nFor more information see renice(1).\n"));
+ fputs(_("\nFor more information see renice(1).\n"), out);
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}