]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: don't confuse users with select() timeout warning
authorKarel Zak <kzak@redhat.com>
Thu, 21 Mar 2013 07:51:22 +0000 (08:51 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Mar 2013 07:51:22 +0000 (08:51 +0100)
Reported-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/hwclock-rtc.c

index 779051d85dd665790c714e2fe09905072782120a..4d628a152e65a4a85f7fe72920b2b7706baeddc7 100644 (file)
@@ -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;