summaryrefslogtreecommitdiffstats
path: root/sys-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 /sys-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 'sys-utils')
-rw-r--r--sys-utils/dmesg.c2
-rw-r--r--sys-utils/fsfreeze.c2
-rw-r--r--sys-utils/fstrim.c2
-rw-r--r--sys-utils/swapon.c2
-rw-r--r--sys-utils/switch_root.c6
5 files changed, 7 insertions, 7 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index 9fc7982a1..2aa904cab 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -361,7 +361,7 @@ static ssize_t read_file_buffer(struct dmesg_control *ctl,
if (fd < 0)
err(EXIT_FAILURE, _("cannot open: %s"), filename);
if (fstat(fd, &st))
- err(EXIT_FAILURE, _("cannot stat: %s"), filename);
+ err(EXIT_FAILURE, _("stat failed %s"), filename);
*buf = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
if (*buf == MAP_FAILED)
diff --git a/sys-utils/fsfreeze.c b/sys-utils/fsfreeze.c
index 5d1702158..1585abb76 100644
--- a/sys-utils/fsfreeze.c
+++ b/sys-utils/fsfreeze.c
@@ -104,7 +104,7 @@ int main(int argc, char **argv)
err(EXIT_FAILURE, _("%s: open failed"), path);
if (fstat(fd, &sb) == -1) {
- warn(_("%s: fstat failed"), path);
+ warn(_("stat failed %s"), path);
goto done;
}
diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c
index bb88bb804..d7633b07a 100644
--- a/sys-utils/fstrim.c
+++ b/sys-utils/fstrim.c
@@ -133,7 +133,7 @@ int main(int argc, char **argv)
}
if (stat(path, &sb) == -1)
- err(EXIT_FAILURE, _("%s: stat failed"), path);
+ err(EXIT_FAILURE, _("stat failed %s"), path);
if (!S_ISDIR(sb.st_mode))
errx(EXIT_FAILURE, _("%s: not a directory"), path);
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index 05d025c00..aec7d2e5e 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -443,7 +443,7 @@ static int swapon_checks(const char *special)
unsigned long long devsize = 0;
if (stat(special, &st) < 0) {
- warn(_("%s: stat failed"), special);
+ warn(_("stat failed %s"), special);
goto err;
}
diff --git a/sys-utils/switch_root.c b/sys-utils/switch_root.c
index 4ff3bff8f..bcd801d5f 100644
--- a/sys-utils/switch_root.c
+++ b/sys-utils/switch_root.c
@@ -62,7 +62,7 @@ static int recursiveRemove(int fd)
dfd = dirfd(dir);
if (fstat(dfd, &rb)) {
- warn(_("failed to stat directory"));
+ warn(_("stat failed"));
goto done;
}
@@ -85,7 +85,7 @@ static int recursiveRemove(int fd)
struct stat sb;
if (fstatat(dfd, d->d_name, &sb, AT_SYMLINK_NOFOLLOW)) {
- warn(_("failed to stat %s"), d->d_name);
+ warn(_("stat failed %s"), d->d_name);
continue;
}
@@ -125,7 +125,7 @@ static int switchroot(const char *newroot)
struct stat newroot_stat, sb;
if (stat(newroot, &newroot_stat) != 0) {
- warn(_("failed to stat directory %s"), newroot);
+ warn(_("stat failed %s"), newroot);
return -1;
}