From 2a11944f16e73ebb219ce50169bcc0e36f873bc9 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 18 Mar 2012 14:13:31 +0100 Subject: [PATCH] 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 --- disk-utils/fsck.minix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.47.2