diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-08 01:20:22 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-08 01:20:22 +0000 |
commit | e83fc3d9336d69c0598426c6fca16f139bd9736f (patch) | |
tree | b5616bd31b4ef0ff4743442a4684efba1cd2b1c0 /usr.sbin/ntpd | |
parent | 661c15bcc70ef71f15747a84f79786c44a77271e (diff) |
lof replies with log_debug so one gets increased verbosity when in
foreground/debug mode
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r-- | usr.sbin/ntpd/client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c index bf1ae54ee8f..660559bf88d 100644 --- a/usr.sbin/ntpd/client.c +++ b/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 <henning@openbsd.org> @@ -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; |