summaryrefslogtreecommitdiffstats
path: root/sys-utils/eject.c
diff options
context:
space:
mode:
authorSami Kerola2012-07-15 10:39:57 +0200
committerKarel Zak2012-07-16 18:18:22 +0200
commit289dcc90234680063a336925a99d1ef04e97cbda (patch)
treecb8656c16143daa406ea9d706406ca12d94d89d3 /sys-utils/eject.c
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 'sys-utils/eject.c')
-rw-r--r--sys-utils/eject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/eject.c b/sys-utils/eject.c
index f621b062e..fdc3402c2 100644
--- a/sys-utils/eject.c
+++ b/sys-utils/eject.c
@@ -497,7 +497,7 @@ static int read_speed(const char *devname)
f = fopen(_PATH_PROC_CDROMINFO, "r");
if (!f)
- err(EXIT_FAILURE, _("%s: open failed"), _PATH_PROC_CDROMINFO);
+ err(EXIT_FAILURE, _("cannot open %s"), _PATH_PROC_CDROMINFO);
name = rindex(devname, '/') + 1;
@@ -689,7 +689,7 @@ static int open_device(const char *name)
if (fd < 0)
fd = open(name, O_RDONLY|O_NONBLOCK);
if (fd == -1)
- err(EXIT_FAILURE, _("%s: open failed"), name);
+ err(EXIT_FAILURE, _("cannot open %s"), name);
return fd;
}