summaryrefslogtreecommitdiffstats
path: root/text-utils
diff options
context:
space:
mode:
authorSami Kerola2012-07-15 10:39:57 +0200
committerKarel Zak2012-07-16 18:18:22 +0200
commit289dcc90234680063a336925a99d1ef04e97cbda (patch)
treecb8656c16143daa406ea9d706406ca12d94d89d3 /text-utils
parenttranslation: unify stat error messages (diff)
downloadkernel-qcow2-util-linux-289dcc90234680063a336925a99d1ef04e97cbda.tar.gz
kernel-qcow2-util-linux-289dcc90234680063a336925a99d1ef04e97cbda.tar.xz
kernel-qcow2-util-linux-289dcc90234680063a336925a99d1ef04e97cbda.zip
translation: unify file open error messages
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils')
-rw-r--r--text-utils/pg.c2
-rw-r--r--text-utils/rev.c2
-rw-r--r--text-utils/tailf.c4
-rw-r--r--text-utils/ul.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/text-utils/pg.c b/text-utils/pg.c
index 0bd827981..9ade866ed 100644
--- a/text-utils/pg.c
+++ b/text-utils/pg.c
@@ -1310,7 +1310,7 @@ found_bw:
save = fopen(p, "wb");
if (save == NULL) {
cmd.count = errno;
- mesg(_("Cannot open "));
+ mesg(_("cannot open "));
mesg(p);
mesg(": ");
mesg(strerror(cmd.count));
diff --git a/text-utils/rev.c b/text-utils/rev.c
index 3c64c12d1..a44f9c6eb 100644
--- a/text-utils/rev.c
+++ b/text-utils/rev.c
@@ -128,7 +128,7 @@ int main(int argc, char *argv[])
do {
if (*argv) {
if ((fp = fopen(*argv, "r")) == NULL) {
- warn(_("%s: open failed"), *argv );
+ warn(_("cannot open %s"), *argv );
rval = EXIT_FAILURE;
++argv;
continue;
diff --git a/text-utils/tailf.c b/text-utils/tailf.c
index 9e77a2f09..e27a14d3e 100644
--- a/text-utils/tailf.c
+++ b/text-utils/tailf.c
@@ -59,7 +59,7 @@ tailf(const char *filename, int lines)
int i;
if (!(str = fopen(filename, "r")))
- err(EXIT_FAILURE, _("cannot open \"%s\" for read"), filename);
+ err(EXIT_FAILURE, _("cannot open %s"), filename);
buf = xmalloc((lines ? lines : 1) * BUFSIZ);
p = buf;
@@ -96,7 +96,7 @@ roll_file(const char *filename, off_t *size)
fd = open(filename, O_RDONLY);
if (fd < 0)
- err(EXIT_FAILURE, _("cannot open \"%s\" for read"), filename);
+ err(EXIT_FAILURE, _("cannot open %s"), filename);
if (fstat(fd, &st) == -1)
err(EXIT_FAILURE, _("stat failed %s"), filename);
diff --git a/text-utils/ul.c b/text-utils/ul.c
index d08ca9a11..80bc7a12e 100644
--- a/text-utils/ul.c
+++ b/text-utils/ul.c
@@ -228,7 +228,7 @@ int main(int argc, char **argv)
for (; optind < argc; optind++) {
f = fopen(argv[optind],"r");
if (!f)
- err(EXIT_FAILURE, _("%s: open failed"),
+ err(EXIT_FAILURE, _("cannot open %s"),
argv[optind]);
filter(f);
fclose(f);