summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock-rtc.c
diff options
context:
space:
mode:
authorKarel Zak2013-03-21 08:56:15 +0100
committerKarel Zak2013-03-21 08:56:15 +0100
commit5724b74dd85340d265cde66b0a81486989d47f56 (patch)
tree61f459b228be7fa368ebf83884d46dc4c85ba8f1 /sys-utils/hwclock-rtc.c
parenthwclock: don't confuse users with select() timeout warning (diff)
downloadkernel-qcow2-util-linux-5724b74dd85340d265cde66b0a81486989d47f56.tar.gz
kernel-qcow2-util-linux-5724b74dd85340d265cde66b0a81486989d47f56.tar.xz
kernel-qcow2-util-linux-5724b74dd85340d265cde66b0a81486989d47f56.zip
hwclock: cleanup _() usage in synchronize_to_clock_tick_rtc()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/hwclock-rtc.c')
-rw-r--r--sys-utils/hwclock-rtc.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c
index 4d628a152..a22ce4c29 100644
--- a/sys-utils/hwclock-rtc.c
+++ b/sys-utils/hwclock-rtc.c
@@ -276,8 +276,7 @@ static int synchronize_to_clock_tick_rtc(void)
* system clock, so aren't at the user's disposal.
*/
if (debug)
- printf(_
- ("%s does not have interrupt functions. "),
+ printf(_("%s does not have interrupt functions. "),
rtc_dev_name);
ret = busywait_for_rtc_clock_tick(rtc_fd);
} else if (rc == 0) {
@@ -288,8 +287,7 @@ static int synchronize_to_clock_tick_rtc(void)
rc = read(rtc_fd, &dummy, sizeof(dummy));
ret = 1;
if (rc == -1)
- warn(_
- ("read() to %s to wait for clock tick failed"),
+ warn(_("read() to %s to wait for clock tick failed"),
rtc_dev_name);
else
ret = 0;
@@ -313,8 +311,7 @@ static int synchronize_to_clock_tick_rtc(void)
rc = select(rtc_fd + 1, &rfds, NULL, NULL, &tv);
ret = 1;
if (rc == -1)
- warn(_
- ("select() to %s to wait for clock tick failed"),
+ warn(_("select() to %s to wait for clock tick failed"),
rtc_dev_name);
else if (rc == 0 && debug)
printf(_("select() to %s to wait for clock tick timed out"),
@@ -326,12 +323,10 @@ static int synchronize_to_clock_tick_rtc(void)
/* Turn off update interrupts */
rc = ioctl(rtc_fd, RTC_UIE_OFF, 0);
if (rc == -1)
- warn(_
- ("ioctl() to %s to turn off update interrupts failed"),
+ warn(_("ioctl() to %s to turn off update interrupts failed"),
rtc_dev_name);
} else {
- warn(_
- ("ioctl() to %s to turn on update interrupts "
+ warn(_("ioctl() to %s to turn on update interrupts "
"failed unexpectedly"), rtc_dev_name);
ret = 1;
}