diff options
author | Sami Kerola | 2012-07-15 10:39:57 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-16 18:18:22 +0200 |
commit | 289dcc90234680063a336925a99d1ef04e97cbda (patch) | |
tree | cb8656c16143daa406ea9d706406ca12d94d89d3 /sys-utils/rtcwake.c | |
parent | translation: unify stat error messages (diff) | |
download | kernel-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/rtcwake.c')
-rw-r--r-- | sys-utils/rtcwake.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c index 321f8d5f3..0e16bd388 100644 --- a/sys-utils/rtcwake.c +++ b/sys-utils/rtcwake.c @@ -116,7 +116,7 @@ static int is_wakeup_enabled(const char *devname) snprintf(buf, sizeof buf, RTC_PATH, devname + strlen("/dev/")); f = fopen(buf, "r"); if (!f) { - warn(_("open failed: %s"), buf); + warn(_("cannot open %s"), buf); return 0; } s = fgets(buf, sizeof buf, f); @@ -276,7 +276,7 @@ static void suspend_system(const char *suspend) FILE *f = fopen(SYS_POWER_STATE_PATH, "w"); if (!f) { - warn(_("open failed: %s"), SYS_POWER_STATE_PATH); + warn(_("cannot open %s"), SYS_POWER_STATE_PATH); return; } @@ -514,7 +514,7 @@ int main(int argc, char **argv) fd = open(devname, O_RDONLY); #endif if (fd < 0) - err(EXIT_FAILURE, _("open failed: %s"), devname); + err(EXIT_FAILURE, _("cannot open %s"), devname); /* relative or absolute alarm time, normalized to time_t */ if (get_basetimes(fd) < 0) |