From b6bb1936a08155a33f5e5fdc61cd6c8d839ec215 Mon Sep 17 00:00:00 2001 From: henning <> Date: Thu, 8 Jul 2004 01:20:21 +0000 Subject: [PATCH] lof replies with log_debug so one gets increased verbosity when in foreground/debug mode --- src/usr.sbin/ntpd/client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/client.c b/src/usr.sbin/ntpd/client.c index bf1ae54e..660559bf 100644 --- a/src/usr.sbin/ntpd/client.c +++ b/src/usr.sbin/ntpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.16 2004/07/07 08:07:02 alexander Exp $ */ +/* $OpenBSD: client.c,v 1.17 2004/07/08 01:20:21 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -160,6 +160,10 @@ client_dispatch(struct ntp_peer *p) p->trustlevel++; } + log_debug("received reply from %s: offset %f delay %f", + log_sockaddr((struct sockaddr *)&fsa), p->reply[p->shift].offset, + p->reply[p->shift].delay); + if (++p->shift >= OFFSET_ARRAY_SIZE) p->shift = 0;