From 289dcc90234680063a336925a99d1ef04e97cbda Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 15 Jul 2012 10:39:57 +0200 Subject: translation: unify file open error messages Signed-off-by: Sami Kerola --- sys-utils/hwclock-rtc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys-utils/hwclock-rtc.c') 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; } -- cgit v1.2.3-55-g7522