Received: from louie.udel.edu by huey.udel.edu id aa21593; 13 Apr 94 8:23 EDT Received: from jagubox.gsfc.nasa.gov by louie.udel.edu id aa20245; 13 Apr 94 8:15 EDT Received: by jagubox.gsfc.nasa.gov (Smail3.1.28.1 #2) id m0pr3rH-0005s0C; Wed, 13 Apr 94 08:15 EDT Message-Id: From: Jim Jagielski Subject: Minor change for ntp_loopfilter (and loop.c) in 3.3q To: Mills@udel.edu Date: Wed, 13 Apr 1994 08:15:55 -0400 (EDT) Reply-To: Jim Jagielski In-Reply-To: <9308051324.aa24396@huey.udel.edu> from "Mills@udel.edu" at Aug 5, 93 01:24:24 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1738 One of the changes between 3.3p and 3.3q was the format change of the syslog message when the clock is reset when xntpd sees a "large" offset. This change is nice, but it would be "better" is the notice also made mention of whether the reset was a step or slew (as defined by SLEWALWAYS). This patch adds that: *** xntpd/Oloop.c Wed Apr 13 08:05:09 1994 --- xntpd/loop.c Wed Apr 13 08:06:32 1994 *************** *** 458,464 **** lfptoa(fp_offset, 6)); return (0); } ! syslog(LOG_NOTICE, "clock reset %s\n", lfptoa(fp_offset, 6)); step_systime(fp_offset); clock_adjust = 0; --- 458,469 ---- lfptoa(fp_offset, 6)); return (0); } ! syslog(LOG_NOTICE, "clock reset (%s) %s\n", ! #ifdef SLEWALWAYS ! "slew", ! #else ! "step", ! #endif lfptoa(fp_offset, 6)); step_systime(fp_offset); clock_adjust = 0; *** xntpd/Ontp_loopfilter.c Wed Apr 13 08:05:23 1994 --- xntpd/ntp_loopfilter.c Wed Apr 13 08:07:03 1994 *************** *** 458,464 **** lfptoa(fp_offset, 6)); return (0); } ! syslog(LOG_NOTICE, "clock reset %s\n", lfptoa(fp_offset, 6)); step_systime(fp_offset); clock_adjust = 0; --- 458,469 ---- lfptoa(fp_offset, 6)); return (0); } ! syslog(LOG_NOTICE, "clock reset (%s) %s\n", ! #ifdef SLEWALWAYS ! "slew", ! #else ! "step", ! #endif lfptoa(fp_offset, 6)); step_systime(fp_offset); clock_adjust = 0; -- #include Jim Jagielski | "Is this something you can share with jim@jagubox.gsfc.nasa.gov | the rest of us Amazing Larry!!??" NASA/GSFC, Code 734.4 | Pee Wee Greenbelt, MD 20771 |