> On 13/07/2017, at 11:10 PM, Miroslav Lichvar <mlich...@redhat.com> wrote: > > On Thu, Jul 13, 2017 at 12:18:02PM +1200, Bryan Christianson wrote: >> macOS 10.13 will implement the ntp_adjtime() system call, allowing better >> control over the system clock than is possible with the existing adjtime() >> system call. >> chronyd will support both the older and newer calls, enabling binary code to >> run without recompilation on macOS 10.9 through macOS 10.13 >> >> Early releases of macOS 10.13 have a very buggy adjtime() call. The macOS >> driver tests adjtime() to see if the bug has been fixed. If the bug >> persists then the timex driver is invoked otherwise the netbsd driver. > > Looks great!
Thanks :) > >> + if (have_bad_adjtime) { >> + DEBUG_LOG("adjtime() is buggy - use the timex driver"); >> + SYS_Timex_Initialise(); > > Is it ok if I change DEBUG_LOG to LOG(LOGS_WARN, ...), so users will > see it in the system log? > Yes - good idea. Bryan Christianson br...@whatroute.net -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.