summaryrefslogtreecommitdiffstats
path: root/disk-utils
diff options
context:
space:
mode:
authorSami Kerola2012-07-15 10:17:53 +0200
committerKarel Zak2012-07-16 18:18:22 +0200
commitadd1b8afd0d836039d9adcc29f53ba6136a66b09 (patch)
tree1810f35135749e943b36c93cba296e3e917bed54 /disk-utils
parentutmpdump: use help and version output macros (diff)
downloadkernel-qcow2-util-linux-add1b8afd0d836039d9adcc29f53ba6136a66b09.tar.gz
kernel-qcow2-util-linux-add1b8afd0d836039d9adcc29f53ba6136a66b09.tar.xz
kernel-qcow2-util-linux-add1b8afd0d836039d9adcc29f53ba6136a66b09.zip
translation: unify stat error messages
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils')
-rw-r--r--disk-utils/fdformat.c2
-rw-r--r--disk-utils/fsck.cramfs.c2
-rw-r--r--disk-utils/mkfs.bfs.c2
-rw-r--r--disk-utils/mkfs.cramfs.c4
-rw-r--r--disk-utils/mkfs.minix.c2
-rw-r--r--disk-utils/partx.c2
6 files changed, 7 insertions, 7 deletions
diff --git a/disk-utils/fdformat.c b/disk-utils/fdformat.c
index ec2f6170e..97fd4e8d6 100644
--- a/disk-utils/fdformat.c
+++ b/disk-utils/fdformat.c
@@ -143,7 +143,7 @@ int main(int argc, char **argv)
if (argc < 1)
usage(stderr);
if (stat(argv[0], &st) < 0)
- err(EXIT_FAILURE, _("cannot stat file %s"), argv[0]);
+ err(EXIT_FAILURE, _("stat failed %s"), argv[0]);
if (!S_ISBLK(st.st_mode))
/* do not test major - perhaps this was an USB floppy */
errx(EXIT_FAILURE, _("%s: not a block device"), argv[0]);
diff --git a/disk-utils/fsck.cramfs.c b/disk-utils/fsck.cramfs.c
index eab4ed590..ac378307e 100644
--- a/disk-utils/fsck.cramfs.c
+++ b/disk-utils/fsck.cramfs.c
@@ -139,7 +139,7 @@ static void test_super(int *start, size_t * length)
/* find the physical size of the file or block device */
if (stat(filename, &st) < 0)
- err(FSCK_EX_ERROR, _("stat failed: %s"), filename);
+ err(FSCK_EX_ERROR, _("stat failed %s"), filename);
fd = open(filename, O_RDONLY);
if (fd < 0)
diff --git a/disk-utils/mkfs.bfs.c b/disk-utils/mkfs.bfs.c
index c93067e20..d83f9e082 100644
--- a/disk-utils/mkfs.bfs.c
+++ b/disk-utils/mkfs.bfs.c
@@ -174,7 +174,7 @@ int main(int argc, char **argv)
device = argv[optind++];
if (stat(device, &statbuf) < 0)
- err(EXIT_FAILURE, _("cannot stat device %s"), device);
+ err(EXIT_FAILURE, _("stat failed %s"), device);
if (!S_ISBLK(statbuf.st_mode))
errx(EXIT_FAILURE, _("%s is not a block special device"), device);
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c
index 37c4da180..44d774083 100644
--- a/disk-utils/mkfs.cramfs.c
+++ b/disk-utils/mkfs.cramfs.c
@@ -745,7 +745,7 @@ int main(int argc, char **argv)
case 'i':
opt_image = optarg;
if (lstat(opt_image, &st) < 0)
- err(MKFS_EX_USAGE, _("cannot stat %s"), opt_image);
+ err(MKFS_EX_USAGE, _("stat failed %s"), opt_image);
image_length = st.st_size; /* may be padded later */
fslen_ub += (image_length + 3); /* 3 is for padding */
break;
@@ -780,7 +780,7 @@ int main(int argc, char **argv)
outfile = argv[optind + 1];
if (stat(dirname, &st) < 0)
- err(MKFS_EX_USAGE, _("cannot stat %s"), dirname);
+ err(MKFS_EX_USAGE, _("stat failed %s"), dirname);
fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
if (fd < 0)
err(MKFS_EX_USAGE, _("cannot open %s"), outfile);
diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c
index c5baac125..a1b5162fa 100644
--- a/disk-utils/mkfs.minix.c
+++ b/disk-utils/mkfs.minix.c
@@ -752,7 +752,7 @@ int main(int argc, char ** argv) {
strcpy(tmp+2, ".badblocks");
}
if (stat(device_name, &statbuf) < 0)
- err(MKFS_EX_ERROR, _("%s: stat failed"), device_name);
+ err(MKFS_EX_ERROR, _("stat failed %s"), device_name);
if (S_ISBLK(statbuf.st_mode))
DEV = open(device_name,O_RDWR | O_EXCL);
else
diff --git a/disk-utils/partx.c b/disk-utils/partx.c
index 6c3287b54..a971a7ea8 100644
--- a/disk-utils/partx.c
+++ b/disk-utils/partx.c
@@ -766,7 +766,7 @@ int main(int argc, char **argv)
device = argv[optind];
if (stat(device, &sb))
- err(EXIT_FAILURE, _("%s: stat failed"), device);
+ err(EXIT_FAILURE, _("stat failed %s"), device);
part_devno = sb.st_rdev;