]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mkswap: fix compiler warning
authorKarel Zak <kzak@redhat.com>
Mon, 21 Feb 2011 15:22:52 +0000 (16:22 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Feb 2011 15:22:52 +0000 (16:22 +0100)
mkswap.c: In function ‘main’:
mkswap.c:646:6: warning: too few arguments for format

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/mkswap.c

index 7a30cdbb55f3453ea7ffd9db26786dfcd132fa81..0f4ad398fdb7556554752da791bd68ea313adc8c 100644 (file)
@@ -651,7 +651,7 @@ main(int argc, char **argv) {
                if (fgetfilecon(DEV, &oldcontext) < 0) {
                        if (errno != ENODATA)
                                err(EXIT_FAILURE,
-                                       _("%s: %s: unable to obtain selinux file label: %s"),
+                                       _("%s: unable to obtain selinux file label"),
                                        device_name);
                        if (matchpathcon(device_name, statbuf.st_mode, &oldcontext))
                                errx(EXIT_FAILURE, _("unable to matchpathcon()"));