diff options
author | J William Piggott | 2017-07-31 15:20:58 +0200 |
---|---|---|
committer | J William Piggott | 2017-08-04 14:53:45 +0200 |
commit | bbf12e45f8b60a22e081993b4d3612d0e7f1805e (patch) | |
tree | 2c936883044525e313fbef68844a92403b4f0c98 /sys-utils | |
parent | hwclock: update man page (diff) | |
download | kernel-qcow2-util-linux-bbf12e45f8b60a22e081993b4d3612d0e7f1805e.tar.gz kernel-qcow2-util-linux-bbf12e45f8b60a22e081993b4d3612d0e7f1805e.tar.xz kernel-qcow2-util-linux-bbf12e45f8b60a22e081993b4d3612d0e7f1805e.zip |
hwclock: restore select() timeout warning
hwclock now exits on select(2) timeout so restore the warning.
Reverts commit ab8f402952301106ad0bd5c5a51dc8646d1bff64
and commit efc4eaf4229f78f14430d8739ddef2c5101f05cc
Except use warnx(), because select() timeout does not set errno.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils')
-rw-r--r-- | sys-utils/hwclock-rtc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c index c73807665..a660e32ba 100644 --- a/sys-utils/hwclock-rtc.c +++ b/sys-utils/hwclock-rtc.c @@ -288,9 +288,8 @@ static int synchronize_to_clock_tick_rtc(const struct hwclock_control *ctl) if (0 < rc) ret = 0; else if (rc == 0) { - if (ctl->debug) - printf(_("select() to %s to wait for clock tick timed out"), - rtc_dev_name); + warnx(_("select() to %s to wait for clock tick timed out"), + rtc_dev_name); } else warn(_("select() to %s to wait for clock tick failed"), rtc_dev_name); |