From: Karel Zak Date: Thu, 25 Oct 2007 08:49:53 +0000 (+0200) Subject: swapon: cleanup usage() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bae1150386846d488a372e38557a152263bae8d3;p=util-linux swapon: cleanup usage() Signed-off-by: Karel Zak --- 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); }