summaryrefslogtreecommitdiffstats
path: root/mount/swapon.c
diff options
context:
space:
mode:
authorKarel Zak2007-10-25 10:49:53 +0200
committerKarel Zak2007-10-25 21:50:59 +0200
commitbae1150386846d488a372e38557a152263bae8d3 (patch)
tree95b046ebc2e9e77b39eff4a21456a31fcaa9a2c6 /mount/swapon.c
parentmount: clean up global variables (diff)
downloadkernel-qcow2-util-linux-bae1150386846d488a372e38557a152263bae8d3.tar.gz
kernel-qcow2-util-linux-bae1150386846d488a372e38557a152263bae8d3.tar.xz
kernel-qcow2-util-linux-bae1150386846d488a372e38557a152263bae8d3.zip
swapon: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/swapon.c')
-rw-r--r--mount/swapon.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mount/swapon.c b/mount/swapon.c
index 5180fafe8..ce3597e57 100644
--- a/mount/swapon.c
+++ b/mount/swapon.c
@@ -60,20 +60,20 @@ static int cannot_find(const char *special);
static void
swapon_usage(FILE *fp, int n) {
- fprintf(fp, _("usage: %s [-hV]\n"
- " %s -a [-e] [-v]\n"
- " %s [-v] [-p priority] special|LABEL=volume_name ...\n"
- " %s [-s]\n"),
- progname, progname, progname, progname);
+ fprintf(fp, _("usage: %1$s [-hV]\n"
+ " %1$s -a [-e] [-v]\n"
+ " %1$s [-v] [-p priority] special|LABEL=volume_name ...\n"
+ " %1$s [-s]\n"),
+ progname);
exit(n);
}
static void
swapoff_usage(FILE *fp, int n) {
- fprintf(fp, _("usage: %s [-hV]\n"
- " %s -a [-v]\n"
- " %s [-v] special ...\n"),
- progname, progname, progname);
+ fprintf(fp, _("usage: %1$s [-hV]\n"
+ " %1$s -a [-v]\n"
+ " %1$s [-v] special ...\n"),
+ progname);
exit(n);
}