summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock-rtc.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/hwclock-rtc.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/hwclock-rtc.c')
-rw-r--r--sys-utils/hwclock-rtc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c
index 62adc49d7..338094190 100644
--- a/sys-utils/hwclock-rtc.c
+++ b/sys-utils/hwclock-rtc.c
@@ -159,7 +159,7 @@ static int open_rtc_or_exit(void)
int rtc_fd = open_rtc();
if (rtc_fd < 0) {
- warn(_("open() of %s failed"), rtc_dev_name);
+ warn(_("cannot open %s"), rtc_dev_name);
hwclock_exit(EX_OSFILE);
}
return rtc_fd;
@@ -253,7 +253,7 @@ static int synchronize_to_clock_tick_rtc(void)
rtc_fd = open_rtc();
if (rtc_fd == -1) {
- warn(_("open() of %s failed"), rtc_dev_name);
+ warn(_("cannot open %s"), rtc_dev_name);
ret = 1;
} else {
int rc; /* Return code from ioctl */
@@ -417,7 +417,7 @@ struct clock_ops *probe_for_rtc_clock(void)
if (rtc_fd >= 0)
return &rtc;
if (debug)
- warn(_("Open of %s failed"), rtc_dev_name);
+ warn(_("cannot open %s"), rtc_dev_name);
return NULL;
}
@@ -438,7 +438,7 @@ int get_epoch_rtc(unsigned long *epoch_p, int silent)
"file %s. This file does not exist on this system."),
rtc_dev_name);
else
- warn(_("Unable to open %s"), rtc_dev_name);
+ warn(_("cannot open %s"), rtc_dev_name);
}
return 1;
}
@@ -485,7 +485,7 @@ int set_epoch_rtc(unsigned long epoch)
"file %s. This file does not exist on this system."),
rtc_dev_name);
else
- warn(_("Unable to open %s"), rtc_dev_name);
+ warn(_("cannot open %s"), rtc_dev_name);
return 1;
}