From bae1150386846d488a372e38557a152263bae8d3 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 25 Oct 2007 10:49:53 +0200 Subject: [PATCH] swapon: cleanup usage() Signed-off-by: Karel Zak --- mount/swapon.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mount/swapon.c b/mount/swapon.c index 5180fafe..ce3597e5 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); } -- 2.39.5