Subject: bin/23891: ntptrace(8) does not print reference clock ID for stratum 1 servers
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <njoly@pasteur.fr>
List: netbsd-bugs
Date: 12/26/2003 18:28:12
>Number:         23891
>Category:       bin
>Synopsis:       ntptrace(8) does not print reference clock ID for stratum 1 servers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 26 17:29:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Nicolas Joly
>Release:        NetBSD 1.6ZG
>Organization:
	Institut Pasteur
>Environment:
System: NetBSD hal.sis.pasteur.fr 1.6ZG NetBSD 1.6ZG (HAL) #0: Thu Dec 11 16:17:54 CET 2003 njoly@hal.sis.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/HAL i386
Architecture: i386
Machine: i386
>Description:
A small typo prevents ntptrace(8) to display the `reference clock ID'
for stratum-1 servers.

njoly@hal [~]> ntptrace ntp.pasteur.fr
ntp.pasteur.fr: stratum 1, offset -0.000287, synch distance 0.011930

>How-To-Repeat:
ntptrace a stratum 1 server
>Fix:
Index: ntptrace.awk
===================================================================
RCS file: /cvsroot/src/usr.sbin/ntp/ntptrace/ntptrace.awk,v
retrieving revision 1.2
diff -u -r1.2 ntptrace.awk
--- ntptrace.awk	2003/12/05 21:24:10	1.2
+++ ntptrace.awk	2003/12/26 17:20:39
@@ -83,7 +83,7 @@
 
     printf("%s: stratum %d, offset %f, synch distance %f",
 	dhost(host), stratum, offset, syncdistance)
-    if ($stratum == 1) printf(", refid '%s'", refid)
+    if (stratum == 1) printf(", refid '%s'", refid)
     printf("\n")
 
     if (stratum == 0 || stratum == 1 || stratum == 16)
>Release-Note:
>Audit-Trail:
>Unformatted: