From: Sami Kerola Date: Sun, 18 Mar 2012 13:13:31 +0000 (+0100) Subject: fsck.minix: fix printf format warning X-Git-Tag: v2.22-rc1~577 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a11944f16e73ebb219ce50169bcc0e36f873bc9;p=thirdparty%2Futil-linux.git fsck.minix: fix printf format warning fsck.minix.c:1302:3: warning: ISO C does not support the '%m' gnu_printf format [-Wformat] Signed-off-by: Sami Kerola --- diff --git a/disk-utils/fsck.minix.c b/disk-utils/fsck.minix.c index 5765013d06..2a39e5be40 100644 --- a/disk-utils/fsck.minix.c +++ b/disk-utils/fsck.minix.c @@ -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();