]> err.no Git - util-linux/commitdiff
swapon: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Thu, 25 Oct 2007 08:49:53 +0000 (10:49 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 25 Oct 2007 19:50:59 +0000 (21:50 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/swapon.c

index 5180fafe846391c41b822d81be1abe80e4255d27..ce3597e578695c64a97283ff2dad490187a303d3 100644 (file)
@@ -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);
 }