summaryrefslogtreecommitdiff
path: root/mkfs/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs/common.c')
-rw-r--r--mkfs/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkfs/common.c b/mkfs/common.c
index 8e85942e..16916ca2 100644
--- a/mkfs/common.c
+++ b/mkfs/common.c
@@ -713,11 +713,11 @@ int test_dev_for_mkfs(const char *file, int force_overwrite)
/* check if the device is busy */
fd = open(file, O_RDWR|O_EXCL);
if (fd < 0) {
- error("unable to open %s: %s", file, strerror(errno));
+ error("unable to open %s: %m", file);
return 1;
}
if (fstat(fd, &st)) {
- error("unable to stat %s: %s", file, strerror(errno));
+ error("unable to stat %s: %m", file);
close(fd);
return 1;
}