]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsck.minix: fix printf format warning
authorSami Kerola <kerolasa@iki.fi>
Sun, 18 Mar 2012 13:13:31 +0000 (14:13 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Mar 2012 14:48:12 +0000 (16:48 +0200)
fsck.minix.c:1302:3: warning: ISO C does not support the '%m' gnu_printf format [-Wformat]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/fsck.minix.c

index 5765013d06b79c749299be0050af1bac35219402..2a39e5be40f52c7d590df2fd4e367f8476733d79 100644 (file)
@@ -1300,7 +1300,7 @@ main(int argc, char **argv) {
        }
        IN = open(device_name, repair ? O_RDWR : O_RDONLY);
        if (IN < 0)
-               die(_("unable to open '%s': %m"), device_name);
+               die(_("unable to open '%s': %s"), device_name, strerror(errno));
        for (count = 0; count < 3; count++)
                sync();
        read_superblock();