summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-07 06:57:14 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-07 06:57:14 +0000
commit1542a712ed227b8be9b788d3968b538dbc47a1d3 (patch)
tree6f56c043458d30fe65b292d47f3807d888512f8d /usr.sbin/ntpd
parentc164aa8e7f02eb327402e3c97567d1226d38e017 (diff)
don't log every single reply we receive and log local clock adjustemt nicer
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r--usr.sbin/ntpd/client.c6
-rw-r--r--usr.sbin/ntpd/ntpd.c4
2 files changed, 3 insertions, 7 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c
index 4af7b61fe0f..bec08ea9fb1 100644
--- a/usr.sbin/ntpd/client.c
+++ b/usr.sbin/ntpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.14 2004/07/07 06:51:16 deraadt Exp $ */
+/* $OpenBSD: client.c,v 1.15 2004/07/07 06:57:13 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -151,10 +151,6 @@ client_dispatch(struct ntp_peer *p)
p->deadline = 0;
p->state = STATE_REPLY_RECEIVED;
- log_debug("reply received from %s: offset %f delay %f",
- log_sockaddr((struct sockaddr *)&fsa), p->reply[p->shift].offset,
- p->reply[p->shift].delay);
-
/* every received reply which we do not discard increases trust */
if (p->trustlevel < 10) {
if (p->trustlevel < TRUSTLEVEL_BADPEER &&
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c
index 336d5176bf3..664257ed025 100644
--- a/usr.sbin/ntpd/ntpd.c
+++ b/usr.sbin/ntpd/ntpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.c,v 1.6 2004/07/05 07:46:16 henning Exp $ */
+/* $OpenBSD: ntpd.c,v 1.7 2004/07/07 06:57:13 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -265,7 +265,7 @@ ntpd_adjtime(double d)
struct timeval tv;
d_to_tv(d, &tv);
- log_debug("calling adjtime, offset=%fs", d);
+ log_info("adjusting local clock by %fs", d);
if (adjtime(&tv, NULL) == -1)
log_warn("adjtime failed");
}