summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/patches/patch.39
blob: 12e09fefcdf79d532edfdc8fe6f3e7c41bf28952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78

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: <m0pr3rH-0005s0C@jagubox.gsfc.nasa.gov>
From: Jim Jagielski <jim@jagubox.gsfc.nasa.gov>
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 <jim@jagubox.gsfc.nasa.gov>
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 <std/disclaimer.h>
    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         |

OpenPOWER on IntegriCloud