[Git][NTPsec/ntpsec][master] Fix spectracom log prefixes
Eric S. Raymond
gitlab at mg.gitlab.com
Sun Nov 26 15:38:04 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
ddf26ff2 by Richard Laager at 2017-11-26T15:37:00+00:00
Fix spectracom log prefixes
The spectracom driver was logging with the old "wwvb" prefix.
- - - - -
1 changed file:
- ntpd/refclock_spectracom.c
Changes:
=====================================
ntpd/refclock_spectracom.c
=====================================
--- a/ntpd/refclock_spectracom.c
+++ b/ntpd/refclock_spectracom.c
@@ -262,10 +262,10 @@ spectracom_receive(
*/
if (temp == 0) {
if (up->prev_eol_cr) {
- DPRINT(2, ("wwvb: <LF> @ %s\n", prettydate(trtmp)));
+ DPRINT(2, ("spectracom: <LF> @ %s\n", prettydate(trtmp)));
} else {
up->laststamp = trtmp;
- DPRINT(2, ("wwvb: <CR> @ %s\n", prettydate(trtmp)));
+ DPRINT(2, ("spectracom: <CR> @ %s\n", prettydate(trtmp)));
}
up->prev_eol_cr = !up->prev_eol_cr;
return;
@@ -274,7 +274,7 @@ spectracom_receive(
pp->lastrec = up->laststamp;
up->laststamp = trtmp;
up->prev_eol_cr = true;
- DPRINT(2, ("wwvb: code @ %s\n"
+ DPRINT(2, ("spectracom: code @ %s\n"
" using %s minus one char\n",
prettydate(trtmp), prettydate(pp->lastrec)));
if (pp->lastrec == 0)
@@ -514,7 +514,7 @@ spectracom_poll(
#endif /* HAVE_PPSAPI */
refclock_receive(peer);
record_clock_stats(peer, pp->a_lastcode);
- DPRINT(1, ("wwvb: timecode %d %s\n", pp->lencode,
+ DPRINT(1, ("spectracom: timecode %d %s\n", pp->lencode,
pp->a_lastcode));
}
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ddf26ff2732a034a314695729425479e411b28e1
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ddf26ff2732a034a314695729425479e411b28e1
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171126/05df5391/attachment.html>
More information about the vc
mailing list