From 1542a712ed227b8be9b788d3968b538dbc47a1d3 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 7 Jul 2004 06:57:14 +0000 Subject: don't log every single reply we receive and log local clock adjustemt nicer --- usr.sbin/ntpd/client.c | 6 +----- usr.sbin/ntpd/ntpd.c | 4 ++-- 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 @@ -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 @@ -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"); } -- cgit v1.2.3