From: Karel Zak Date: Thu, 21 Mar 2013 07:51:22 +0000 (+0100) Subject: hwclock: don't confuse users with select() timeout warning X-Git-Tag: v2.23-rc1~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab8f402;p=thirdparty%2Futil-linux.git hwclock: don't confuse users with select() timeout warning Reported-by: Daniel Drake Signed-off-by: Karel Zak --- diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c index 779051d85d..4d628a152e 100644 --- a/sys-utils/hwclock-rtc.c +++ b/sys-utils/hwclock-rtc.c @@ -316,9 +316,8 @@ static int synchronize_to_clock_tick_rtc(void) warn(_ ("select() to %s to wait for clock tick failed"), rtc_dev_name); - else if (rc == 0) - warn(_ - ("select() to %s to wait for clock tick timed out"), + else if (rc == 0 && debug) + printf(_("select() to %s to wait for clock tick timed out"), rtc_dev_name); else ret = 0;