Commit
ab8f402952301106ad0bd5c5a51dc8646d1bff64 regression
where synchronize_to_clock_tick_rtc() only returns the correct
value for a select() time out if using debug mode. This caused
hwclock to have invalid output when select() timed out in
normal mode.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
if (rc == -1)
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"),
- rtc_dev_name);
- else
+ else if (rc == 0) {
+ if (debug)
+ printf(_("select() to %s to wait for clock tick timed out"),
+ rtc_dev_name);
+ } else
ret = 0;
#endif